2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

chat admin checks improved

This commit is contained in:
John Preston
2015-11-02 00:49:25 -05:00
parent 04b0932780
commit 6d7c55e7cc
6 changed files with 88 additions and 69 deletions

View File

@@ -293,7 +293,7 @@ void TopBarWidget::showAll() {
PeerData *p = App::main() ? App::main()->profilePeer() : 0, *h = App::main() ? App::main()->historyPeer() : 0, *o = App::main() ? App::main()->overviewPeer() : 0;
if (p && (p->isChat() || (p->isUser() && (p->asUser()->contact >= 0 || !App::phoneFromSharedContact(peerToUser(p->id)).isEmpty())))) {
if (p->isChat()) {
if (p->asChat()->amIn()) {
if (p->asChat()->canEdit()) {
_edit.show();
} else {
_edit.hide();