|
@@ -27,6 +27,7 @@ import { updateDeviceList } from '../../react/features/base/devices';
|
27
|
27
|
import { JitsiTrackErrors } from '../../react/features/base/lib-jitsi-meet';
|
28
|
28
|
import {
|
29
|
29
|
getLocalParticipant,
|
|
30
|
+ participantPresenceChanged,
|
30
|
31
|
showParticipantJoinedNotification
|
31
|
32
|
} from '../../react/features/base/participants';
|
32
|
33
|
import { openDisplayNamePrompt } from '../../react/features/display-name';
|
|
@@ -475,8 +476,18 @@ UI.getSharedDocumentManager = () => etherpadManager;
|
475
|
476
|
UI.addUser = function(user) {
|
476
|
477
|
const id = user.getId();
|
477
|
478
|
const displayName = user.getDisplayName();
|
|
479
|
+ const status = user.getStatus();
|
478
|
480
|
|
479
|
|
- APP.store.dispatch(showParticipantJoinedNotification(displayName));
|
|
481
|
+ if (status) {
|
|
482
|
+ // if user has initial status dispatch it
|
|
483
|
+ // and skip 'connected' notifications
|
|
484
|
+ APP.store.dispatch(participantPresenceChanged(id, status));
|
|
485
|
+
|
|
486
|
+ // FIXME: move updateUserStatus in participantPresenceChanged action
|
|
487
|
+ UI.updateUserStatus(user, status);
|
|
488
|
+ } else {
|
|
489
|
+ APP.store.dispatch(showParticipantJoinedNotification(displayName));
|
|
490
|
+ }
|
480
|
491
|
|
481
|
492
|
if (!config.startAudioMuted
|
482
|
493
|
|| config.startAudioMuted > APP.conference.membersCount) {
|