[FIX] Typing not getting cleared after popping a room (#873)

This commit is contained in:
Diego Mello 2019-05-03 14:17:29 -03:00 committed by GitHub
parent 2492371b50
commit 10210d0dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -184,6 +184,10 @@ export default function subscribeRoom({ rid }) {
typingTimeouts[key] = null; 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); connectedListener = this.sdk.onStreamData('connected', handleConnected);