2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Track local messages, restore on history jump.

This commit is contained in:
John Preston
2019-07-17 14:41:48 +02:00
parent 04bf24288a
commit 0005e0a3ce
9 changed files with 107 additions and 116 deletions

View File

@@ -1797,7 +1797,7 @@ void ApiWrap::requestSelfParticipant(not_null<ChannelData*> channel) {
channel->inviteDate = inviteDate;
if (const auto history = _session->data().historyLoaded(channel)) {
if (history->lastMessageKnown()) {
history->checkJoinedMessage(true);
history->checkLocalMessages();
history->owner().sendHistoryChangeNotifications();
} else {
requestDialogEntry(history);