Fix last read inbox id pointing to non-existent message (#3482)

This commit is contained in:
Alexander Zinchuk 2023-07-05 13:15:58 +02:00
parent 3b0f03e012
commit 20f8dedf8c

View File

@ -287,6 +287,10 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
});
}
global = updateChat(global, chatId, {
lastReadInboxMessageId: message.id,
});
setGlobal(global);
break;