mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed formatting
This commit is contained in:
parent
46de86f1e4
commit
20fbf0a655
1 changed files with 1 additions and 3 deletions
|
@ -86,9 +86,7 @@ void PeerClickHandler::onClick(ClickContext context) const {
|
|||
if (context.button == Qt::LeftButton && App::wnd()) {
|
||||
const auto controller = App::wnd()->sessionController();
|
||||
const auto currentPeer = controller->activeChatCurrent().peer();
|
||||
if (_peer
|
||||
&& _peer->isChannel()
|
||||
&& currentPeer != _peer) {
|
||||
if (_peer && _peer->isChannel() && currentPeer != _peer) {
|
||||
const auto clickedChannel = _peer->asChannel();
|
||||
if (!clickedChannel->isPublic() && !clickedChannel->amIn()
|
||||
&& (!currentPeer->isChannel()
|
||||
|
|
Loading…
Add table
Reference in a new issue