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:
@@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user