fix message prepend event

This commit is contained in:
Adhiraj Singh
2021-10-08 12:07:25 +05:30
parent 91bbf575ec
commit 183a1c6ad0

View File

@@ -239,7 +239,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
case proto.HistorySync.HistorySyncHistorySyncType.RECENT:
// push remaining messages
for(const conv of item.conversations) {
for(const m of (conv.messages || []).slice(1)) {
for(const m of (conv.messages || [])) {
messages.push(m.message!)
}
}