Fix name send in message

This commit is contained in:
Gregoire Parant 2020-11-10 13:00:14 +01:00
parent 3333b3cee3
commit 0acbe20bbf
2 changed files with 3 additions and 3 deletions

View file

@ -603,7 +603,7 @@ export class GameScene extends ResizableScene implements CenterListener {
});
// When connection is performed, let's connect SimplePeer
this.simplePeer = new SimplePeer(this.connection, !this.room.isPublic);
this.simplePeer = new SimplePeer(this.connection, !this.room.isPublic, this.GameManager.getPlayerName());
this.GlobalMessageManager = new GlobalMessageManager(this.connection);
this.UserMessageManager = new UserMessageManager(this.connection);