Chat: Fix empty last message after deletion (#4278)

This commit is contained in:
Alexander Zinchuk 2024-02-23 14:06:10 +01:00
parent c4736edbb4
commit 7b73ef8d03

View File

@ -159,7 +159,7 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
case 'updateChatLastMessage': {
const { id, lastMessage } = update;
global = updateChatLastMessage(global, id, lastMessage);
global = updateChatLastMessage(global, id, lastMessage, true);
global = addMessages(global, [lastMessage]);
setGlobal(global);
break;