2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Version 0.10.8: editing of service message added.

This commit is contained in:
John Preston
2016-09-23 21:26:53 +03:00
parent efbf67a8ff
commit 947963d5d1
5 changed files with 52 additions and 44 deletions

View File

@@ -4579,9 +4579,8 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
}
// update before applying skipped
if (d.vmessage.type() == mtpc_message) { // apply message edit
App::updateEditedMessage(d.vmessage.c_message());
}
App::updateEditedMessage(d.vmessage);
if (channel && !_handlingChannelDifference) {
channel->ptsApplySkippedUpdates();
}
@@ -4595,14 +4594,8 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
}
// update before applying skipped
if (d.vmessage.type() == mtpc_message) { // apply message edit
App::updateEditedMessage(d.vmessage.c_message());
} else if (d.vmessage.type() == mtpc_messageService) {
auto &message = d.vmessage.c_messageService();
if (message.vaction.type() == mtpc_messageActionHistoryClear) {
App::updateEditedMessageToEmpty(peerFromMessage(d.vmessage), message.vid.v);
}
}
App::updateEditedMessage(d.vmessage);
ptsApplySkippedUpdates();
} break;