Browse Source

fix(presence): send latest presence on conference join (#920)

Attempts to fix the following issue:
1. Electron user starts the conference join process.
2. Electron user adds remote control capability and
   attempts to send presence.
3. Electron user presence send is blocked because the
   conference has not been joined.
4. Electron user joins the conference.
5. The remote control capability is not emitted until
   some other presence change triggers another
   presence send. Until then, other uses will not see
   remote control option available for the electron
   user.
master
virtuacoplenny 5 years ago
parent
commit
63578e414a
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      modules/xmpp/ChatRoom.js

+ 4
- 0
modules/xmpp/ChatRoom.js View File

@@ -460,6 +460,10 @@ export default class ChatRoom extends Listenable {
460 460
                     this.locked = true;
461 461
                 }
462 462
 
463
+                // Re-send presence in case any presence updates were added,
464
+                // but blocked from sending, during the join process.
465
+                this.sendPresence();
466
+
463 467
                 this.eventEmitter.emit(XMPPEvents.MUC_JOINED);
464 468
             }
465 469
         } else if (this.members[from] === undefined) {

Loading…
Cancel
Save