John Preston
ced0c4d8f0
Move HistoryMessageDate to view elements.
2018-02-08 12:20:51 +03:00
John Preston
ebd4651ac2
Manage unread bar using HistoryView::Element-s.
2018-02-08 12:20:50 +03:00
John Preston
861ab85ca1
Fix voice/video messages in chats/feed.
2018-02-08 12:20:50 +03:00
John Preston
e6baf8ef5b
Fix layout of some media, enable GIF autoplay.
2018-02-08 12:20:50 +03:00
John Preston
d326c7e3fa
Remove HistoryItemInstantiated.
2018-02-08 12:20:49 +03:00
John Preston
950126865e
Handle item view refresh, fix groups.
2018-02-08 12:20:49 +03:00
John Preston
04c8c95634
Use notify* instead of mark* in Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
8a56ede187
Move all (item/view/media) maps to Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
7425e80f05
Use HistoryMedia as view, add Data::Media.
2018-02-08 12:20:48 +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
bee474f6e9
Remove history_item and layout from pch.
...
Also move some code to separate modules.
Also create history item views by Window::Controller.
2018-02-08 12:20:47 +03:00
John Preston
4740d44159
Make HistoryView::Message a ClickHandlerHost.
2018-02-08 12:20:47 +03:00
John Preston
062b0b2165
Save item views in App::*Item() variables.
...
Also remove App::contextItem.
Also use owning pointers for history context menus.
2018-02-08 12:20:47 +03:00
John Preston
8060cb7426
Start HistoryView::Message class for item view.
2018-02-08 12:20:47 +03:00
John Preston
794e31505b
First version of feed section view.
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
Matthew Tran
74b126f309
Add reply shortcut
2017-12-30 21:52:30 +03:00
John Preston
255dbf9405
Fix indexing of shared media.
...
Add new messages to shared media index even if !loadedAtBottom().
2017-12-26 19:20:06 +03:00
John Preston
92333e982c
Move message components to history_item_components.
...
Also fix channel signatures rendering.
2017-12-18 19:52:36 +04:00
John Preston
546766fb13
Update FullMsgId context in HistoryMedia links.
2017-12-18 17:13:41 +04:00
John Preston
37b018257e
Replace some std::shared_ptr with std::unique_ptr.
2017-12-18 14:38:14 +04:00
John Preston
14034c255e
Replace QSharedPointer with std::shared_ptr.
2017-12-18 13:07:18 +04:00
John Preston
89ccaccb88
Display right edited badge in group with caption.
2017-12-16 20:50:43 +04:00
John Preston
3e7ac7eb26
Use first media caption for group caption.
2017-12-16 20:50:43 +04:00
John Preston
3a56b7cabd
Forward grouped items. Fast share grouped items.
2017-12-16 20:50:43 +04:00
John Preston
537400d8b2
Enable distinct selecting of grouped media.
2017-12-16 20:50:42 +04:00
John Preston
4c9931ab02
Support grouped media rendering.
2017-12-16 20:50:42 +04:00
John Preston
9bbcbd4bb3
Remove all legacy media overview code.
2017-12-08 22:34:26 +04:00
John Preston
85d8273009
Implement correct saved messages history layout.
...
Forwarded info is displayed as a message author info (name/photo).
Outgoing messages without forwarded info are displayed as out().
Messages with save_from_ info have a button for GoToOriginal().
2017-12-05 20:14:28 +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
75d8d01b17
Allow pinned messages in channels.
2017-11-21 18:27:48 +04:00
John Preston
6ca105a290
Minimal layer 72 support.
2017-11-20 23:54:05 +04:00
John Preston
54cc3e6315
Shared media multiple items selection.
2017-11-16 07:59:07 +04:00
John Preston
6861059d18
Fix build for old OS X with Qt 5.3.2
2017-11-16 07:59:05 +04:00
John Preston
41ed2d1b84
New storage for shared media messages index.
2017-11-16 07:59:02 +04:00
visuve
08e3a54a58
Mark missing ctors deleted
...
- Satisfy the rule of five
Signed-off-by: Veli-Matti Visuri <veli-matti.visuri@cerescon.fi> (github: visuve)
2017-09-28 18:23:42 +03:00
John Preston
c09fbcfeb3
Display author photo / name in search results.
2017-09-05 20:21:56 +03:00
John Preston
2e374e68c5
Fix working with layers.
...
Regression was introduced in df64c97
.
New base::flags work correctly only if all mutually exclusive flag
values use mutually exclusive bits (a & b == 0 for exclusive (a, b)).
Closes #3856 .
2017-09-03 22:49:33 +03:00
John Preston
df64c972d8
Replace QFlags with base::flags.
2017-09-03 15:45:47 +03:00
John Preston
5a20014b1a
Highlight all mentions when marking them read.
2017-08-30 19:15:53 +03:00
John Preston
4c604b34c1
Allow service messages to be unread mentions.
2017-08-30 19:15:50 +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
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
e209737b1a
Display and follow unread mentions in history.
2017-08-30 19:15:13 +03:00
John Preston
24b3b2a658
Fix forwarded from for single message forward.
...
Closes #3699 , closes #3701 , closes #3700 .
2017-07-26 09:07:05 +03:00
John Preston
9bd89121e8
Replace self-destruct media service messages text.
...
Also support runtime components with align up to std::max_align_t.
2017-07-23 12:34:42 +03:00
John Preston
cf02a4cc31
API scheme updated to layer 70.
2017-07-23 12:34:40 +03:00
John Preston
f7a354bfd1
Display "edited" mark on channel signed messages.
2017-07-18 22:00:33 +03:00
John Preston
48bd693679
Allow to copy message links in public supergroups.
2017-07-11 20:21:24 +03:00