2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Empty messages do not participate in displayDate() flow.

Example of an empty message is service message after clear history.
This commit is contained in:
John Preston
2016-06-08 22:14:17 +03:00
parent 23a598ba3d
commit a5cbbba12d
5 changed files with 12 additions and 8 deletions

View File

@@ -821,7 +821,6 @@ void MainWidget::clearHistory(PeerData *peer) {
h->clear();
h->newLoaded = h->oldLoaded = true;
}
Ui::showPeerHistory(peer->id, ShowAtUnreadMsgId);
MTPmessages_DeleteHistory::Flags flags = MTPmessages_DeleteHistory::Flag::f_just_clear;
DeleteHistoryRequest request = { peer, true };
MTP::send(MTPmessages_DeleteHistory(MTP_flags(flags), peer->input, MTP_int(0)), rpcDone(&MainWidget::deleteHistoryPart, request));