Skip to content

Commit d201f29

Browse files
committed
sync displayName for communities
1 parent af782f1 commit d201f29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

session-client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,8 @@ class SessionClient extends EventEmitter {
621621
// returns false if can't get a token
622622
// get token, so we can get initial messages
623623
if (roomObj) {
624+
// FIXME: avatar
625+
if (this.displayName !== false) roomObj.updateProfile(this.displayName)
624626
roomObj.ensureToken()
625627
}
626628
// return handle
@@ -647,6 +649,8 @@ class SessionClient extends EventEmitter {
647649
* sessionClient.joinOpenGroup('chat.getsession.org')
648650
*/
649651
async sendOpenGroupV3Message(roomObj, messageTextBody, options = {}) {
652+
// FIXME: avatar
653+
if (this.displayName !== false) roomObj.updateProfile(this.displayName)
650654
return roomObj.send(messageTextBody, options)
651655
}
652656

0 commit comments

Comments
 (0)