diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-11 14:01:14 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-26 11:46:45 +0300 |
commit | 954d9601a04391cb99c9fbd828994d6db79fa1fb (patch) | |
tree | 5b8c29687cd80895fb3c555ab954924b771346b4 /src | |
parent | 51c1afcebe4e4f5c3294d806f0c48d45ded2fb95 (diff) |
Don't show the SIP connection as guest
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/CallView/CallView.vue | 2 | ||||
-rw-r--r-- | src/utils/webrtc/models/CallParticipantModel.js | 1 | ||||
-rw-r--r-- | src/utils/webrtc/webrtc.js | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/components/CallView/CallView.vue b/src/components/CallView/CallView.vue index a5dd4f4ed..68a44f0ff 100644 --- a/src/components/CallView/CallView.vue +++ b/src/components/CallView/CallView.vue @@ -190,7 +190,7 @@ export default { }, computed: { callParticipantModels() { - return callParticipantCollection.callParticipantModels + return callParticipantCollection.callParticipantModels.filter(callParticipantModel => !callParticipantModel.attributes.internal) }, reversedCallParticipantModels() { diff --git a/src/utils/webrtc/models/CallParticipantModel.js b/src/utils/webrtc/models/CallParticipantModel.js index 88b7e0f62..185d85a8d 100644 --- a/src/utils/webrtc/models/CallParticipantModel.js +++ b/src/utils/webrtc/models/CallParticipantModel.js @@ -43,6 +43,7 @@ export default function CallParticipantModel(options) { // are used for known but negative/empty values. userId: undefined, name: undefined, + internal: undefined, connectionState: ConnectionState.NEW, stream: null, // The audio element is part of the model to ensure that it can be diff --git a/src/utils/webrtc/webrtc.js b/src/utils/webrtc/webrtc.js index a0c290d8a..be9ee4e99 100644 --- a/src/utils/webrtc/webrtc.js +++ b/src/utils/webrtc/webrtc.js @@ -237,6 +237,9 @@ function usersChanged(signaling, newUsers, disconnectedSessionIds) { }) } callParticipantModel.setUserId(userId) + if (user.internal) { + callParticipantModel.set('internal', true) + } // When the MCU is used and the other participant has no streams or // when no MCU is used and neither the local participant nor the |