John Preston
6d62673e9e
Fix crash in HistoryWidget.
2017-12-09 22:21:38 +04:00
John Preston
5a7d8bcffb
Add audio playlist using Info::Media::ListWidget.
2017-12-09 19:13:06 +04:00
John Preston
63e89ddc9a
Fix replies by stickers and inline bot results.
2017-12-09 16:39:41 +04:00
John Preston
4e2c8bbc26
Use SharedMediaMergedViewer() for audio player.
...
That way audio files and voice/video messages will play in context
(one after another with ability to go to next or previous in player)
almost always, no matter at what part of message history we are.
2017-12-09 14:02:51 +04:00
John Preston
9bbcbd4bb3
Remove all legacy media overview code.
2017-12-08 22:34:26 +04:00
John Preston
951db83ab6
Index bad audio files to Shared Files Overview.
...
Fixes #4120 .
2017-12-08 19:53:04 +04:00
John Preston
90f5f7dded
Fix possible crash in timer timeout values.
2017-12-08 18:15:00 +04:00
John Preston
aef88559e8
Fix possible crash in HistoryWidget.
...
Stack in crash reports leads to something like that:
- HistoryWidget::showHistory
- _scroll->setOwnedWidget
- Ui::ScrollArea::onScrolled
- sendSynteticMouseEvent
- Info::Media::ListWidget::enterEventHook
- Info::Media::ListWidget::mouseAction?Update
- Overview::Layout::ItemBase::clickHandlerActiveChanged
- AuthSessionData::requestItemRepaint
- HistoryWidget::repaintHistoryItem
Workaround:
- Don't accept repaint item requests while _list is not set yet.
2017-12-08 17:54:55 +04:00
John Preston
f8963d7e4b
Read silent flag from PeerData, not SilentToggle.
2017-12-08 15:52:12 +04:00
John Preston
79398fe6cf
Add call button to Info::Profile top bar.
2017-12-07 19:17:53 +04:00
John Preston
355747d7bf
Remove send actions in Saved Messages.
...
Fixes #4122 .
2017-12-07 18:27:59 +04:00
John Preston
54984efa0a
Fix small files layout in Saved Messages.
...
Minimal message and media width are less because of the goto-button.
2017-12-07 17:43:05 +04:00
John Preston
5bc47e5203
Move shareContact and readServerHistory to ApiWrap.
...
Also allow non-confirming contact info sharing to Saved Messages.
2017-12-07 17:43:05 +04:00
John Preston
f0a03223e8
Share contact instantly to Saved Messages.
2017-12-07 12:56:10 +04:00
John Preston
c6d3fd883a
Display right action button not too high.
2017-12-06 18:15:41 +04:00
John Preston
1473c14668
Forward messages to Saved Messages instantly.
2017-12-06 17:56:40 +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
f8e094392f
Fix ripple animation glitch in history top bar.
2017-12-05 20:14:15 +04:00
John Preston
46bafc2dcc
Support Saved messages in chats list and forwards.
2017-12-05 18:07:01 +04:00
John Preston
1d85c8a6b6
API scheme updated to layer 73.
2017-12-05 12:44:27 +04:00
John Preston
5eeb8143b6
Move EmptyUserpic from data_peer to empty_userpic.
2017-12-05 12:44:27 +04:00
John Preston
68009b6fba
Refactor userpic storage and access in PeerData.
2017-12-05 11:58:18 +04:00
John Preston
62568daffe
Refactor NotifySettings in PeerData.
2017-12-04 21:48:45 +04:00
John Preston
e1c68892d4
Show third column only when explicitly requested.
...
This allows you to show info in layer from mention links.
2017-12-04 13:42:05 +04:00
John Preston
f3c8da4819
Request all admins when first opening a supergroup.
2017-12-03 20:43:42 +04:00
John Preston
da77c10f60
Hide three-dot peer menu when peer changes.
2017-12-02 15:11:01 +04:00
John Preston
301aa9572f
Apply channel admin edition changes.
2017-12-02 15:07:27 +04:00
John Preston
675499df4d
Fix render bug in single column layout.
2017-12-02 14:22:48 +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
afd1548533
Attempt to fix a crash in touch event handlers.
2017-11-30 22:18:39 +04:00
John Preston
595af2c6d9
Rename weak(QObject*) to make_weak(QObject*).
2017-11-30 22:04:13 +04:00
John Preston
2bbf17b672
Fix t.me/share links.
...
Regression was introduced in ffc20e4492
.
Fixes #4099 .
2017-11-30 21:47:58 +04:00
John Preston
a0c8d522ef
Save window extension on layer->section migration.
...
If the third section is shown inside the existing window remember
it as a zero window extension or third section show. That way it
will hide correctly when it is closed by X button.
Partially fixes #4091 .
2017-11-30 17:08:51 +04:00
John Preston
2e972fb678
Hide "Delete for {user}" in chats with bots.
...
Fixes #3818 .
2017-11-30 15:06:30 +04:00
John Preston
ad6ddcb507
Fix crash in selecting unsent messages.
...
Also add some more checks in file downloads and serialization.
2017-11-30 11:14:31 +04:00
John Preston
196ff7f4c1
Don't apply count from getParticipants(Recent).
2017-11-28 22:30:01 +04:00
John Preston
a63abe5154
Add some more crash debug information.
2017-11-28 14:05:11 +04:00
John Preston
ddd57517df
Fix text overflow in history top bar.
2017-11-27 19:09:26 +04:00
John Preston
d014b47958
Move Info::TopBarOverride to Info::TopBar.
...
This allows to improve animations in shared media items selection.
2017-11-27 15:43:57 +04:00
John Preston
20c9280ada
Add some more debug info for crashes.
2017-11-24 21:41:31 +04:00
John Preston
0ced28f991
Nice animations when selecting shared media items.
2017-11-24 19:47:09 +04:00
John Preston
efdba3a482
Handle errors in getMessages().
2017-11-23 19:41:13 +04:00
John Preston
f477aea2a5
Add some more debug info for crashes.
2017-11-22 15:10:11 +04:00
John Preston
2387b66e86
Allow supergroup members to clear history.
2017-11-22 12:04:24 +04:00
John Preston
75d8d01b17
Allow pinned messages in channels.
2017-11-21 18:27:48 +04:00
John Preston
b337d54623
Use custom base::overload() helper.
2017-11-21 18:27:48 +04:00
John Preston
6ca105a290
Minimal layer 72 support.
2017-11-20 23:54:05 +04:00