Fixed formatting

This commit is contained in:
RadRussianRus 2020-01-28 12:31:58 +03:00 committed by John Preston
parent 46de86f1e4
commit 20fbf0a655
1 changed files with 1 additions and 3 deletions

View File

@ -86,9 +86,7 @@ void PeerClickHandler::onClick(ClickContext context) const {
if (context.button == Qt::LeftButton && App::wnd()) { if (context.button == Qt::LeftButton && App::wnd()) {
const auto controller = App::wnd()->sessionController(); const auto controller = App::wnd()->sessionController();
const auto currentPeer = controller->activeChatCurrent().peer(); const auto currentPeer = controller->activeChatCurrent().peer();
if (_peer if (_peer && _peer->isChannel() && currentPeer != _peer) {
&& _peer->isChannel()
&& currentPeer != _peer) {
const auto clickedChannel = _peer->asChannel(); const auto clickedChannel = _peer->asChannel();
if (!clickedChannel->isPublic() && !clickedChannel->amIn() if (!clickedChannel->isPublic() && !clickedChannel->amIn()
&& (!currentPeer->isChannel() && (!currentPeer->isChannel()