dialog cache update
This commit is contained in:
@@ -145,7 +145,11 @@ export function useDialogFiber() {
|
||||
|
||||
updateDialog(fromPublicKey);
|
||||
|
||||
});
|
||||
let dialogCache = getDialogCache(toPublicKey);
|
||||
if (currentDialogPublicKeyView !== toPublicKey && dialogCache.length > 0) {
|
||||
addOrUpdateDialogCache(toPublicKey, [...dialogCache, newMessage].slice(-MESSAGE_MAX_LOADED));
|
||||
}
|
||||
}, [privatePlain, currentDialogPublicKeyView]);
|
||||
|
||||
/**
|
||||
* Обработчик сообщений для группы
|
||||
|
||||
Reference in New Issue
Block a user