history: improve history sync and support new payload
This commit is contained in:
+1
-1
@@ -1036,7 +1036,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
|
||||
const historyMsg = getHistoryMsg(msg.message!)
|
||||
const shouldProcessHistoryMsg = historyMsg
|
||||
? shouldSyncHistoryMessage(historyMsg) && PROCESSABLE_HISTORY_TYPES.includes(historyMsg.syncType!)
|
||||
? shouldSyncHistoryMessage(historyMsg) && PROCESSABLE_HISTORY_TYPES.includes(historyMsg.syncType! as proto.HistorySync.HistorySyncType)
|
||||
: false
|
||||
|
||||
// State machine: decide on sync and flush
|
||||
|
||||
Reference in New Issue
Block a user