Skip to content

Commit

Permalink
removed 'view public channels option' from direct channels
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyubomir Filipov committed Apr 24, 2022
1 parent 6a12665 commit a6b376a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions sources/channel-tree/TeamItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,17 @@ void TeamItem::showContextMenu (const QPoint& pos)
UserListDialogForTeam* dialog = new UserListDialogForTeam (team->display_name, teamUsers, treeWidget());
dialog->show ();
});
}

myMenu.addAction ("View Public Channels", [this] {
BackendTeam* team = backend.getStorage().getTeamById(teamId);
myMenu.addAction ("View Public Channels", [this] {
BackendTeam* team = backend.getStorage().getTeamById(teamId);

backend.retrieveTeamPublicChannels (team->id, [this, team] (std::list<BackendChannel>& channels) {
TeamChannelsListDialog* dialog = new TeamChannelsListDialog (backend, team->display_name, channels, treeWidget());
dialog->show ();
});
});
}

backend.retrieveTeamPublicChannels (team->id, [this, team] (std::list<BackendChannel>& channels) {
TeamChannelsListDialog* dialog = new TeamChannelsListDialog (backend, team->display_name, channels, treeWidget());
dialog->show ();
});
});

myMenu.exec (pos);
}
Expand Down

0 comments on commit a6b376a

Please sign in to comment.