Chat List: Fix last message when sent from another app

This commit is contained in:
Alexander Zinchuk 2021-06-15 03:04:55 +03:00
parent 6fc73cb18a
commit bb843f8f14

View File

@ -80,7 +80,7 @@ addReducer('apiUpdate', (global, actions, update: ApiUpdate) => {
}
// @perf Wait until scroll animation finishes or simply rely on delivery status update (which is itself delayed)
if (!message.isOutgoing) {
if (!isMessageLocal(message as ApiMessage)) {
setTimeout(() => {
setGlobal(updateChatLastMessage(getGlobal(), chatId, newMessage));
}, ANIMATION_DELAY);