Browse Source

don't show 'user has left' notification for hidden users

j8
brian baldino 7 years ago
parent
commit
9fea5e89b3
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      conference.js

+ 3
- 0
conference.js View File

1765
         });
1765
         });
1766
 
1766
 
1767
         room.on(JitsiConferenceEvents.USER_LEFT, (id, user) => {
1767
         room.on(JitsiConferenceEvents.USER_LEFT, (id, user) => {
1768
+            if (user.isHidden()) {
1769
+                return;
1770
+            }
1768
             APP.store.dispatch(participantLeft(id, user));
1771
             APP.store.dispatch(participantLeft(id, user));
1769
             logger.log('USER %s LEFT', id, user);
1772
             logger.log('USER %s LEFT', id, user);
1770
             APP.API.notifyUserLeft(id);
1773
             APP.API.notifyUserLeft(id);

Loading…
Cancel
Save