From cb7e6d55f9138404886be819984c4097b31cbb59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Tue, 19 May 2020 05:18:19 +0200 Subject: Do not fetch all conversations when joining or leaving a call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the current user joins or leaves a call there is no need to fetch all the conversations, but just the current conversation and the participants. As when any user, including the current one, joins or leaves a call a room participants update event is sent by the external signaling server the current conversation and the participants are already gotten, so it is not needed to add an explicit handling for that. Signed-off-by: Daniel Calviño Sánchez --- src/utils/signaling.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/utils/signaling.js') diff --git a/src/utils/signaling.js b/src/utils/signaling.js index 0c48c817a..c15ac82be 100644 --- a/src/utils/signaling.js +++ b/src/utils/signaling.js @@ -940,16 +940,6 @@ Signaling.Standalone.prototype.joinCall = function(token, flags) { Signaling.Base.prototype.joinCall.apply(this, arguments) } -Signaling.Standalone.prototype._joinCallSuccess = function(/* token */) { - // Update room list to fetch modified properties. - EventBus.$emit('shouldRefreshConversations') -} - -Signaling.Standalone.prototype._leaveCallSuccess = function(/* token */) { - // Update room list to fetch modified properties. - EventBus.$emit('shouldRefreshConversations') -} - Signaling.Standalone.prototype.joinResponseReceived = function(data, token) { console.debug('Joined', data, token) this.signalingRoomJoined = token -- cgit v1.2.3