From 0bbeb422711c71e35e0c74b8ac1c3a0f157579ee Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Thu, 27 May 2021 14:23:17 -0300 Subject: [PATCH] [FIX] Discussions not subscribing properly to messages when opened from inside the room (#3149) * [FIX] Promise at subscription Room * E2E - Update previous roomView count after send msg in discussion * Not needed rn Co-authored-by: Diego Mello --- app/lib/methods/subscriptions/room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/methods/subscriptions/room.js b/app/lib/methods/subscriptions/room.js index 885c2469a..2d9ba8f90 100644 --- a/app/lib/methods/subscriptions/room.js +++ b/app/lib/methods/subscriptions/room.js @@ -159,7 +159,7 @@ export default class RoomSubscription { updateMessage = message => ( new Promise(async(resolve) => { if (this.rid !== message.rid) { - return; + return resolve(); } const db = database.active;