Chat List: Fix last message when sent from another app
This commit is contained in:
parent
6fc73cb18a
commit
bb843f8f14
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user