John Preston
d93c1ccbaa
Improve compile time.
2017-11-21 14:20:52 +04:00
John Preston
6ca105a290
Minimal layer 72 support.
2017-11-20 23:54:05 +04:00
John Preston
ac99318f34
Use ranges:: algorithms instead of base::
2017-11-20 16:24:00 +04:00
John Preston
4aae4f9399
Show channel members inside Info as well.
2017-11-17 20:06:20 +04:00
John Preston
8ff0120642
Add EditPeerInfoBox without saving.
2017-11-16 07:59:10 +04:00
John Preston
1871425b2d
Add 'X' and admin star in group info members.
2017-11-16 07:59:10 +04:00
John Preston
9a988d89e3
Remove std::any dependency (for now).
...
Xcode 9 still doesn't have std::any :(
2017-11-16 07:59:08 +04:00
John Preston
b51f865c54
Save info members list state to memento.
2017-11-16 07:59:08 +04:00
John Preston
fb46c33d7f
Add context menu support to info members list.
2017-11-16 07:59:07 +04:00
John Preston
856ca22aad
Display online count in the info profile section.
2017-11-16 07:59:07 +04:00
John Preston
93c15e5ee6
Use internal section stack in Info::WrapWidget.
2017-11-16 07:59:06 +04:00
John Preston
2c75b4836d
Improve sorting by online in info profile.
2017-11-16 07:59:05 +04:00
John Preston
292e57ffc7
Use PeerListBox content in info profile.
2017-11-16 07:59:04 +04:00
John Preston
f162462111
Move info between Layer and Narrow wrap.
2017-11-16 07:59:03 +04:00
John Preston
b3da99c302
Replace gsl::not_null<T*> with just not_null<T*>.
2017-08-30 19:15:41 +03:00
John Preston
a72453fb1b
Remove ContactsBox and contacts_box module.
2017-08-30 19:15:30 +03:00
John Preston
782114d644
Add and use base::make_weak_unique() helper.
2017-08-30 19:15:28 +03:00
John Preston
0880c01a20
Replace group admins ContactsBox with PeerListBox.
2017-08-30 19:15:28 +03:00
John Preston
f7359093b4
Replace ContactsBox with PeerListBox in two cases.
...
- View contacts list in PeerListBox.
- Add participants when creating group / channel in PeerListBox.
2017-08-30 19:15:27 +03:00
John Preston
012d59ab42
Use nullptr instead of std::unique_ptr<Type>().
2017-08-30 19:15:25 +03:00
John Preston
ab35829358
Remove App::app(), App::uploader(), App::api().
...
Also use Auth() instead of AuthSession::Current*().
2017-08-25 14:39:18 +03:00
John Preston
27151d5e25
Show who banned or restricted user in supergroup.
2017-08-01 21:14:41 +03:00
John Preston
ed4c3cccb2
Add admins from search in admins list box.
...
When searching in admins list box show all group members and allow
to appoint a new administrator right from this box.
2017-07-19 11:18:20 +03:00
John Preston
cabf35f2b3
Allow to create channel invite link in boxes.
...
SetupChannelBox (public/private) and MaxInviteBox are suggesting
to copy the channel invite link. Now they suggest to create it
in case the channel didn't have the invite link already.
2017-07-14 15:28:08 +03:00
John Preston
9e73e22e13
Add channel members in ParticipantsBoxController.
...
Also remove MembersBox, it was replaced completely.
2017-07-14 09:46:57 +03:00
John Preston
06d4ea2975
Use ParticipantsBoxController for members list.
...
Add search in channel/supergroup members inside PeerListBox.
Also MembersBox is not used anymore.
2017-07-11 12:17:27 +03:00
John Preston
58a592ba47
Allow to see admin / banned rights for everyone.
...
Even if you can't edit admin / banned rights you can see them.
2017-07-10 15:29:55 +03:00
John Preston
9344504781
Show error when adding a non-group bot to admins.
2017-07-10 13:56:29 +03:00
John Preston
da0d78135d
Some refactoring in working with text entities.
...
Also move this code to TextUtilities namespace.
2017-07-06 14:37:42 +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
7013a0dfef
Update channel admin counter after removing admin.
2017-07-05 21:36:09 +03:00
John Preston
e1709c11da
Check weak pointer in AddParticipantBoxController.
...
This may fix some crashes.
2017-07-05 12:39:21 +03:00
John Preston
5dcf341aaa
Display "no users" in empty add participant box.
2017-06-30 09:21:45 +03:00
John Preston
401bc86f27
Closed beta 1001007002: New channel rights.
...
Also fix build in Xcode.
2017-06-30 09:21:41 +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
1b649299ff
Show edit admin non-mutual-contact error message.
2017-06-30 09:20:31 +03:00
John Preston
b35d2505a4
Better mentions highlighting in PeerListBox.
2017-06-29 11:40:23 +03:00
John Preston
240ced395b
Apply changes in ParticipantsBoxController.
...
When we add admin / banned / restricted user in a channel using
AddParticipantBoxController we now apply the added user in the box.
2017-06-29 11:40:22 +03:00
John Preston
9e8e49b8d9
Add other search to admin/ban/restrict in channel.
...
Search in chats / contacts / global in AddParticipantBoxController.
Also move all channel participants box controllers to another module.
2017-06-29 11:40:21 +03:00