John Preston
21d2f6a44f
Generalize Checkbox layout.
...
Now any Checkbox can have Check, Radio or Toggle layout.
Radiobutton is now a subclass of Checkbox with default Radio layout.
2017-07-07 14:16:37 +03:00
John Preston
f38fad2f92
Correctly apply edit admin in channel.
...
For example update adminCount / membersCount. For that we pass not
only the newRights values, but also oldRights values to applyEdit*().
2017-07-06 00:11:49 +03:00
John Preston
96d1fe336a
Fix assertion violation when editing an admin.
...
There is a possibility that an EditAdminBox will be shown for someone
who can't add admins right now (in case server says he can edit one).
In that case assertion about the admins checkbox is false and we fix
that. Currently server sometimes does return this flag by mistake.
2017-07-02 22:26:24 +03:00
John Preston
6487d91722
Add users to a channel check by admin rights.
...
Also add an admin right checkbox for add users in channels.
2017-06-30 09:21:44 +03:00
John Preston
c3ad0ae129
Always show that bot-admin reads all messages.
...
A bot with any admin rights has access to messages.
2017-06-30 09:21:41 +03:00
John Preston
04e587b999
Hide Add Users checkbox if megagroup is democracy.
...
Also unite invite_users and invite_link flags.
2017-06-29 11:40:17 +03:00
John Preston
7d2d5c6100
Edit admin and restricted rights in channels.
2017-06-29 11:40:11 +03:00
John Preston
513a9f8d45
Add rich supergroup/channel admin support.
2017-06-29 11:40:10 +03:00