mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Drafts always shown in dialogs list when no unread messages in the chat.
Edition of any message to service message "history cleared".
This commit is contained in:
@@ -4507,6 +4507,11 @@ 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);
|
||||
}
|
||||
}
|
||||
ptsApplySkippedUpdates();
|
||||
} break;
|
||||
|
Reference in New Issue
Block a user