From dbbf360e329121a054592d7183bd396a0d59c198 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 10 Sep 2015 16:40:29 +0300 Subject: [PATCH] fixed report button in 0.8.56 stable version --- Telegram/SourceFiles/historywidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index a20f9484e..3e5542f4e 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -2968,7 +2968,7 @@ void HistoryWidget::contactsReceived() { } void HistoryWidget::updateReportSpamStatus() { - if (!_peer || App::userFromPeer(_peer->id) == MTP::authedId()) { + if (!_peer || !_peer->chat && (App::userFromPeer(_peer->id) == MTP::authedId() || isNotificationsUser(_peer->id) || isServiceUser(_peer->id))) { _reportSpamStatus = dbiprsNoButton; return; } else {