2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Begin of EditPeerBox redesigning.

- Moved buttons from ManageGroupBox to EditPeerBox.
 - Added counting of permissions.
This commit is contained in:
23rd
2019-03-15 11:20:12 +03:00
committed by John Preston
parent 3a5bad4b7a
commit 0f3ec47074
9 changed files with 442 additions and 16 deletions

View File

@@ -358,7 +358,7 @@ void Filler::addChatActions(not_null<ChatData*> chat) {
if (ManagePeerBox::Available(chat)) {
const auto text = lang(lng_manage_group_title);
_addAction(text, [=] {
Ui::show(Box<ManagePeerBox>(chat));
Ui::show(Box<EditPeerInfoBox>(chat));
});
}
if (chat->canAddMembers()) {
@@ -402,7 +402,7 @@ void Filler::addChannelActions(not_null<ChannelData*> channel) {
? lng_manage_group_title
: lng_manage_channel_title);
_addAction(text, [channel] {
Ui::show(Box<ManagePeerBox>(channel));
Ui::show(Box<EditPeerInfoBox>(channel));
});
}
if (channel->canAddMembers()) {