From 10210d0dcf318d9ba4a8c4ead349443f0c25ee5e Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 3 May 2019 14:17:29 -0300 Subject: [PATCH] [FIX] Typing not getting cleared after popping a room (#873) --- app/lib/methods/subscriptions/room.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/lib/methods/subscriptions/room.js b/app/lib/methods/subscriptions/room.js index db3c16b5..b30e63ef 100644 --- a/app/lib/methods/subscriptions/room.js +++ b/app/lib/methods/subscriptions/room.js @@ -184,6 +184,10 @@ export default function subscribeRoom({ rid }) { typingTimeouts[key] = null; } }); + database.memoryDatabase.write(() => { + const usersTyping = database.memoryDatabase.objects('usersTyping').filtered('rid == $0', rid); + database.memoryDatabase.delete(usersTyping); + }); }; connectedListener = this.sdk.onStreamData('connected', handleConnected);