Merge pull request #11691 from Tainan404/issue-11618

Fix messages being not cleared
This commit is contained in:
Anton Georgiev 2021-03-22 10:48:08 -04:00 committed by GitHub
commit 800c10eb1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,7 @@ const Adapter = () => {
}
}
if (msg.data.indexOf('{"msg":"removed","collection":"group-chat-msg"') != -1) {
messageQueue = [];
dispatch({
type: ACTIONS.REMOVED,
});