John Preston
fe618bd652
Use crl::time/now instead of TimeMs/getms.
2019-02-19 11:06:33 +04:00
John Preston
4111da1dd0
Move some calls from App namespace.
2019-01-22 17:10:01 +04:00
John Preston
22f1ffc72b
Use different phrases for default restrictions.
2019-01-17 12:21:30 +04:00
John Preston
3c44bdb6b7
Support auto-migrate to supergroups.
2019-01-17 12:21:30 +04:00
John Preston
a605c110a8
Support legacy groups in participant boxes.
2019-01-17 12:21:29 +04:00
John Preston
18c6be0d3b
Unify legacy and megagroups information edit.
2019-01-17 12:21:29 +04:00
John Preston
61419b57c8
Prepare legacy group restrictions checking.
2019-01-17 12:21:29 +04:00
John Preston
c5a41e1f55
Divide data/data_peer and remove from PCH.
2019-01-17 12:21:29 +04:00
John Preston
d2d6b319b6
Update API scheme to layer 93. Broken.
2019-01-17 12:21:28 +04:00
John Preston
8306e58b75
Fix build in Xcode / GCC.
2018-12-28 19:41:06 +04:00
John Preston
4002739682
Suggest adding bots to channels as admins.
2018-12-28 15:42:58 +04:00
John Preston
efe3dfad5c
Fix crash in radiobutton destruction.
...
It crashed if the button was destroyed from group _changedCallback.
2018-12-05 13:55:59 +04:00
John Preston
03b0c0cff4
Fix crash in forwarding box.
2018-11-30 09:45:22 +04:00
John Preston
338129faea
Destroy boxes in Ui::hideLayer().
2018-11-26 15:00:31 +04:00
John Preston
8a3615281c
Support structured bindings in base::flat_map.
2018-11-20 19:38:40 +04:00
John Preston
0c8709ca5f
Replace App::self() with Auth().user().
...
Always have self Auth().user() when AuthSession exists.
2018-09-19 19:22:13 +03:00
John Preston
dd81f5d59f
Replace base::lambda with shorter term.
...
base::lambda -> Fn (type alias for std::function).
base::lambda_once -> FnMut (type alias for base::unique_function).
base::lambda_guarded -> crl::guard.
base::lambda_call_type_t -> crl::deduced_call_type.
2018-06-04 18:38:27 +03:00
John Preston
a2dabfde56
Separate form controller from view controller.
2018-06-03 23:16:34 +03:00
John Preston
87d6081408
Version 1.2.16: Fix build in Xcode 9.3.
2018-04-07 12:47:08 +04:00
John Preston
8bacc74d8b
Request dialog list entries when needed.
...
Also save the original server-side int32 date in HistoryItems.
2018-02-08 12:20:54 +03:00
John Preston
a7f67c4bc9
Better chats list entries management.
...
Make unread counts and last message base::optional<>.
Remove ChannelHistory.
2018-02-08 12:20:54 +03:00
John Preston
840b42934b
Use server-side my_results in contacts.search.
2018-02-08 12:20:51 +03:00
John Preston
4527c03c0d
Use "Feed" name for chats list index and search.
2018-02-08 12:20:51 +03:00
John Preston
d1a9d3992b
API scheme updated to layer 76.
2018-02-08 12:20:49 +03:00
John Preston
97a9089ebf
Move draw / getState code to HistoryView::Message.
...
Item dimensions broken for now.
Also remove history.h from pch.
2018-02-08 12:20:48 +03:00
John Preston
a2891807f8
Prepare dialogs to hold a history or a feed.
2018-02-08 12:20:46 +03:00
John Preston
6a9556d42c
Move non-settings session data to Data::Session.
...
Rename AuthSessionData to AuthSessionSettings, move data away.
2018-02-08 12:20:46 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
ddf4a36bdc
Remove mtproto/session.h from precompiled header.
2017-12-18 16:40:15 +04:00
John Preston
6764a3cc86
Replace SelectedItemSet with MessageIdsList.
...
Use vector<FullMsgId> everywhere instead QMap<..,HistoryItem*>.
The old way the app crashed in case some messages were deleted.
If the items are needed use HistoryItemsList=vector<HistoryItem*>.
2017-12-06 14:13:38 +04:00
John Preston
46bafc2dcc
Support Saved messages in chats list and forwards.
2017-12-05 18:07:01 +04:00
John Preston
8391d43057
Use EditPeerInfoBox for editing groups.
...
This allows to edit group invite links.
Rename EditNameTitleBox to EditNameBox, used only from Settings.
2017-12-02 16:04:22 +04:00
John Preston
85b3d3f64d
Display admin badges in supergroups.
...
Also prefer std containers to Qt and OrderedSet in data_peer.
2017-12-01 22:38:44 +04:00
John Preston
2432845df2
Optimize and rename base::weak_unique_ptr.
...
Rename base::enable_weak_from_this -> base::has_weak_ptr.
Rename base::weak_unique_ptr -> base::weak_ptr.
Rename base::make_weak_unique -> base::make_weak.
Rename base/weak_unique_ptr.h -> base/weak_ptr.h
2017-11-30 21:33:27 +04:00
John Preston
ac99318f34
Use ranges:: algorithms instead of base::
2017-11-20 16:24:00 +04:00
John Preston
1871425b2d
Add 'X' and admin star in group info members.
2017-11-16 07:59:10 +04:00
John Preston
9743dc1ffb
Add some more actions to three dot menu.
2017-11-16 07:59:10 +04:00
John Preston
fb46c33d7f
Add context menu support to info members list.
2017-11-16 07:59:07 +04:00
John Preston
583b0fa778
Display common groups in Info profiles.
2017-11-16 07:59:07 +04:00
John Preston
1a0e524b49
Optimize third column (create it only once).
...
Before historyPeer and historyPeerCanWrite were independent, so we
created a new Info section for both of them changing.
Now we use Data::CanWriteValue(peer) and rpl::flatten_latest().
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
41ed2d1b84
New storage for shared media messages index.
2017-11-16 07:59:02 +04:00
John Preston
52195ff95a
Fix saving chat admins.
...
Regression was introduced in 0880c01a20
.
2017-09-04 15:21:53 +03:00
John Preston
c2a1cc2ae8
Fix crash in contacts list box global search.
...
Regression was introduced in f7359093b4
.
2017-09-03 22:50:16 +03:00
John Preston
25ffaaaa2d
Replace t_assert() with Assert().
...
Also use this assertions for Expects(), Ensures() and Unexpected().
2017-08-30 19:15:42 +03: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
b816d33d48
Replace add bot to group box with PeerListBox.
2017-08-30 19:15:29 +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