2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Improve auto-delete service messages.

This commit is contained in:
John Preston
2021-02-23 20:44:37 +04:00
parent 522a71f7dc
commit 4875f0b003
2 changed files with 8 additions and 0 deletions

View File

@@ -385,6 +385,12 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
} else {
result.text = tr::lng_action_ttl_changed_channel(tr::now, lt_duration, duration);
}
} else if (_from->isSelf()) {
if (!period) {
result.text = tr::lng_action_ttl_removed_you(tr::now);
} else {
result.text = tr::lng_action_ttl_changed_you(tr::now, lt_duration, duration);
}
} else {
result.links.push_back(fromLink());
if (!period) {