From 8f6be1c6acfe612d63a192a5ee708324257a96bc Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 26 Oct 2015 22:43:03 -0400 Subject: [PATCH] channel admin appointment box bottomshadow bug fixed --- Telegram/SourceFiles/boxes/contactsbox.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/contactsbox.cpp b/Telegram/SourceFiles/boxes/contactsbox.cpp index 90f32519e..510761472 100644 --- a/Telegram/SourceFiles/boxes/contactsbox.cpp +++ b/Telegram/SourceFiles/boxes/contactsbox.cpp @@ -1210,7 +1210,10 @@ void ContactsBox::init() { connect(&_inner, SIGNAL(chosenChanged()), this, SLOT(onChosenChanged())); connect(&_inner, SIGNAL(addRequested()), App::wnd(), SLOT(onShowAddContact())); - if (_inner.chat() || _inner.channel()) { + if (_inner.channel() && _inner.channelFilter() == MembersFilterAdmins) { + _next.hide(); + _cancel.hide(); + } else if (_inner.chat() || _inner.channel()) { connect(&_next, SIGNAL(clicked()), this, SLOT(onInvite())); _bottomShadow = new ScrollableBoxShadow(this); } else if (_inner.creating() != CreatingGroupNone) { @@ -1326,7 +1329,7 @@ void ContactsBox::showAll() { if (_inner.channel() && _inner.channelFilter() == MembersFilterAdmins) { _next.hide(); _cancel.hide(); - } else if (_inner.chat()) { + } else if (_inner.chat() || _inner.channel()) { _next.show(); _cancel.show(); } else if (_inner.creating() != CreatingGroupNone) {