From 0d38106ed0cddf4c008dfd97b7219d5895ebe62c Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 3 Jul 2017 13:13:32 +0300 Subject: [PATCH] Fix Edit option display for supergroup creator. Supergroup creator saw the Edit option for other users messages. --- Telegram/SourceFiles/history/history_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 3fbc2f916..0aa284223 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -849,7 +849,7 @@ bool HistoryItem::canEdit(const QDateTime &cur) const { return true; } if (auto channel = _history->peer->asChannel()) { - if (channel->canEditMessages()) { + if (isPost() && channel->canEditMessages()) { return true; } if (out()) {