refactor: chats.set event

This commit is contained in:
Adhiraj Singh
2022-01-16 13:02:38 +05:30
parent 09553def8a
commit 7bb6e3ceeb
7 changed files with 30 additions and 21 deletions

View File

@@ -66,13 +66,11 @@ export const processHistoryMessage = (item: proto.IHistorySync, historyCache: Se
break
}
if(chats.length || contacts.length || messages.length) {
return {
chats,
contacts,
messages,
isLatest,
}
return {
chats,
contacts,
messages,
isLatest,
}
}