Chat: Fix empty last message after deletion (#4278)
This commit is contained in:
parent
c4736edbb4
commit
7b73ef8d03
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user