John Preston
f88cbf3d4b
Fix crash in case of incorrect Text entities.
2018-02-08 12:20:45 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
ae7e5be5cd
Add fast reply button in groups.
2017-12-30 21:54:15 +03:00
John Preston
5b4694a4eb
Move text options constant to a separate module.
...
Also start MediaView group thumbs code.
2017-12-28 16:06:06 +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
977dee3599
Fix fast sharing from channels.
...
Grouped flag is only allowed for grouped media in forward requests.
Fixes #4198 .
2017-12-18 17:29:48 +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
1f070da202
Recount grouping after leader caption edit.
2017-12-16 20:50:43 +04:00
John Preston
963e969d2a
Fix selected messages copy with grouping.
2017-12-16 20:50:43 +04:00
John Preston
d9da2edd7c
Improve grouped media display.
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
8b69e6ab99
Rename some methods in DocumentData.
...
Also fix voice message mark as read when autoplaying after previous.
Also show play icon and don't show playlist for audio files that do
not have shared music files attributes but have audio file mime type.
2017-12-10 14:28:04 +04:00
John Preston
9bbcbd4bb3
Remove all legacy media overview code.
2017-12-08 22:34:26 +04:00
John Preston
c6d3fd883a
Display right action button not too high.
2017-12-06 18:15:41 +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
8b3d203861
Display saved messages senders correctly.
2017-12-05 20:38:13 +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
46bafc2dcc
Support Saved messages in chats list and forwards.
2017-12-05 18:07:01 +04:00
John Preston
5eeb8143b6
Move EmptyUserpic from data_peer to empty_userpic.
2017-12-05 12:44:27 +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
3bdce06e19
Use peer colors uniformly with mobile apps.
2017-12-01 14:21:40 +04:00
John Preston
efdba3a482
Handle errors in getMessages().
2017-11-23 19:41:13 +04:00
John Preston
6ca105a290
Minimal layer 72 support.
2017-11-20 23:54:05 +04:00
John Preston
fe9630bb20
Allow to resize third column.
2017-11-16 07:59:11 +04:00
John Preston
65cc4d3fbc
Support item repaint in Info media overview.
2017-11-16 07:59:06 +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
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
b3da99c302
Replace gsl::not_null<T*> with just not_null<T*>.
2017-08-30 19:15:41 +03:00
John Preston
e209737b1a
Display and follow unread mentions in history.
2017-08-30 19:15:13 +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
24b3b2a658
Fix forwarded from for single message forward.
...
Closes #3699 , closes #3701 , closes #3700 .
2017-07-26 09:07:05 +03:00
John Preston
e1e286aa13
Allow to fast share not games to channels.
...
Fixes #3692 .
2017-07-26 09:07:01 +03:00
John Preston
cf02a4cc31
API scheme updated to layer 70.
2017-07-23 12:34:40 +03:00
John Preston
fa70bf9e0c
Fix text message edit admin event log entries.
...
Regression was introduced in a513b1c
.
In case of text messages entry->_page minimal height is counted in
the whole message minimal height and should not be added.
2017-07-23 12:33:39 +03:00
John Preston
f7a354bfd1
Display "edited" mark on channel signed messages.
2017-07-18 22:00:33 +03:00
John Preston
a513b1c7b3
Fix media caption edit admin event log entries.
2017-07-18 21:59:53 +03:00
John Preston
a5e0b19b79
Copy correct text for a forwarded reply message.
2017-07-18 19:48:10 +03:00
John Preston
7c6bb132ce
Don't display reply preview if it doesn't fit.
2017-07-18 19:47:56 +03:00
John Preston
f32af6999b
Add a fast share button in channels and bots.
2017-07-11 20:11:06 +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
545915e481
Fix name/fwd/reply/viabot info display for media.
2017-06-30 09:21:45 +03:00
John Preston
85e234938d
Fix inline keyboard. Disable it in the event log.
...
Also disable game preview click handler in the event log.
2017-06-30 09:21:43 +03:00