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

Scheme updated, not channel messages editing updates handled.

This commit is contained in:
John Preston
2016-03-30 21:13:07 +04:00
parent b981472877
commit 8cde13fb8c
6 changed files with 350 additions and 260 deletions

View File

@@ -4627,6 +4627,20 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
}
} break;
case mtpc_updateEditMessage: {
const MTPDupdateEditMessage &d(update.c_updateEditMessage());
if (!ptsUpdated(d.vpts.v, d.vpts_count.v, update)) {
return;
}
// update before applying skipped
if (d.vmessage.type() == mtpc_message) { // apply message edit
App::updateEditedMessage(d.vmessage.c_message());
}
ptsApplySkippedUpdates();
} break;
case mtpc_updateChannelPinnedMessage: {
const MTPDupdateChannelPinnedMessage &d(update.c_updateChannelPinnedMessage());