Fixed formatting
This commit is contained in:
parent
46de86f1e4
commit
20fbf0a655
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue