From 0299ba48737dddc99b8d04ed752f8510d85ec2bd Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 1 Oct 2020 18:20:56 +0300 Subject: [PATCH] Allow in groups to delete service messages for everyone. Fixes #8690. --- Telegram/SourceFiles/history/history_item.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 6fcc2b05ed..947af8a216 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -599,9 +599,7 @@ bool HistoryItem::canDeleteForEveryone(TimeId now) const { return false; } } - if (!peer->isUser() && !toHistoryMessage()) { - return false; - } else if (const auto media = this->media()) { + if (const auto media = this->media()) { if (!media->allowsRevoke(now)) { return false; }