From 8f0606c9b6dc49447bbeec8018b7d418fcd102f4 Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Thu, 10 Sep 2015 16:43:46 +0300
Subject: [PATCH] fixed warning in os x and linux, 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 b6e3fafa0..28ed1b902 100644
--- a/Telegram/SourceFiles/historywidget.cpp
+++ b/Telegram/SourceFiles/historywidget.cpp
@@ -2968,7 +2968,7 @@ void HistoryWidget::contactsReceived() {
 }
 
 void HistoryWidget::updateReportSpamStatus() {
-	if (!_peer || !_peer->chat && (App::userFromPeer(_peer->id) == MTP::authedId() || isNotificationsUser(_peer->id) || isServiceUser(_peer->id))) {
+	if (!_peer || (!_peer->chat && (App::userFromPeer(_peer->id) == MTP::authedId() || isNotificationsUser(_peer->id) || isServiceUser(_peer->id)))) {
 		_reportSpamStatus = dbiprsNoButton;
 		return;
 	} else {