From 9f30109a908a796095287533632b5d36b16b18a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Wed, 14 Aug 2024 03:03:34 +0200 Subject: [PATCH 1/2] fix: Fix using signaling session ID instead of Nextcloud session ID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CallParticipantModels provide the signaling session ID and the Nextcloud session ID. When the internal signaling server is used both IDs are the same, but not with the external signaling server. The session ID in the participant and peer data provided by the Nextcloud server is the Nextcloud session ID, so no participant or peer data was found in the CallView components when the external signaling server was used, as the data was looked for using the signaling session ID. Signed-off-by: Daniel Calviño Sánchez --- src/components/CallView/shared/ReactionToaster.vue | 6 +++--- src/components/CallView/shared/Screen.vue | 2 +- src/components/CallView/shared/VideoVue.vue | 10 +++++++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/CallView/shared/ReactionToaster.vue b/src/components/CallView/shared/ReactionToaster.vue index a93ef79cf9f..3b484214cc3 100644 --- a/src/components/CallView/shared/ReactionToaster.vue +++ b/src/components/CallView/shared/ReactionToaster.vue @@ -180,17 +180,17 @@ export default { }, getParticipantName(model) { - const { name, peerId } = model.attributes + const { name, nextcloudSessionId } = model.attributes if (name) { return name } - const participant = this.participants.find(participant => participant.sessionIds.includes(peerId)) + const participant = this.participants.find(participant => participant.sessionIds.includes(nextcloudSessionId)) if (participant?.displayName) { return participant.displayName } - return this.guestNameStore.getGuestName(this.token, Hex.stringify(SHA1(peerId))) + return this.guestNameStore.getGuestName(this.token, Hex.stringify(SHA1(nextcloudSessionId))) }, getReactionURL(emoji) { diff --git a/src/components/CallView/shared/Screen.vue b/src/components/CallView/shared/Screen.vue index f6c4871f131..657fff561ea 100644 --- a/src/components/CallView/shared/Screen.vue +++ b/src/components/CallView/shared/Screen.vue @@ -88,7 +88,7 @@ export default { return null } - return Hex.stringify(SHA1(this.callParticipantModel.attributes.peerId)) + return Hex.stringify(SHA1(this.callParticipantModel.attributes.nextcloudSessionId)) }, remoteParticipantName() { diff --git a/src/components/CallView/shared/VideoVue.vue b/src/components/CallView/shared/VideoVue.vue index 808b2d895a2..657bf4334d4 100644 --- a/src/components/CallView/shared/VideoVue.vue +++ b/src/components/CallView/shared/VideoVue.vue @@ -330,11 +330,11 @@ export default { }, sessionHash() { - return Hex.stringify(SHA1(this.peerId)) + return Hex.stringify(SHA1(this.nextcloudSessionId)) }, peerData() { - let peerData = this.$store.getters.getPeer(this.$store.getters.getToken(), this.peerId, this.model.attributes.userId) + let peerData = this.$store.getters.getPeer(this.$store.getters.getToken(), this.nextcloudSessionId, this.model.attributes.userId) if (!peerData.actorId) { EventBus.emit('refresh-peer-list') peerData = { @@ -352,7 +352,7 @@ export default { * via the participant list */ return this.$store.getters.findParticipant(this.$store.getters.getToken(), { - sessionId: this.peerId, + sessionId: this.nextcloudSessionId, }) || {} }, @@ -514,6 +514,10 @@ export default { peerId() { return this.model.attributes.peerId }, + + nextcloudSessionId() { + return this.model.attributes.nextcloudSessionId + }, }, watch: { From 9faaed2d1c6912c6e29bbdbd0560f9078948b767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Wed, 14 Aug 2024 03:03:55 +0200 Subject: [PATCH 2/2] fix: Remove unused computed properties MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "guestName" in "LocalVideo" is unused since "NcAvatar" was replaced by "AvatarWrapper" in 973a735924e095ffbf7740299771b8075c97ee71. Signed-off-by: Daniel Calviño Sánchez Signed-off-by: Maksim Sukharev --- src/components/CallView/shared/LocalVideo.vue | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/components/CallView/shared/LocalVideo.vue b/src/components/CallView/shared/LocalVideo.vue index 1e08fd95866..8b49c055f0d 100644 --- a/src/components/CallView/shared/LocalVideo.vue +++ b/src/components/CallView/shared/LocalVideo.vue @@ -49,9 +49,6 @@