Commit graph

192 commits

Author SHA1 Message Date
John Preston
f671897a4d Fix a possible crash in Go to Message on macOS.
Fixes #26273.

This crash happens with a very deep stack trace that is caused by
destroying shared media layer on Go to Message click, which starts
destroying Media::ListWidget, which destroys Ui::PopupMenu, which is
a window, so when it destructs it triggers a sync repaint of the main
window (by a system event), which tries to render the new messages slice,
which starts a photo download, which calls an item repaint in Data::Session,
and the semi-destroyed Media::ListWidget is still subscribed to the
item repaint requests and tries to repaint and crashes there.

The fix is to destroy all session-related subscriptions before the PopupMenu.
2023-05-24 20:22:41 +04:00
John Preston
d51d1939b0 Add search with categories to GIF. 2023-02-02 22:12:31 +04:00
John Preston
b4571b80d6 Show spoilers in shared media overview. 2022-12-27 13:10:38 +04:00
John Preston
1b73b34810 Make HistoryItem a final class. 2022-12-26 14:24:04 +04:00
23rd
4fabb3f2a2 Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03:00
John Preston
01139e1b04 Remove facades module. 2022-11-30 16:55:51 +04:00
John Preston
7cdf20a7c5 Allow topic deletion. 2022-11-01 19:25:40 +04:00
23rd
4f4d0bef25 Added usernames info to ChannelData. 2022-11-01 19:25:38 +04:00
John Preston
6695eda1be Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
John Preston
58b8eb8e96 Implement per-topic shared media. 2022-11-01 19:25:37 +04:00
John Preston
3722e55b67 Support topic on-the-fly creation. 2022-11-01 19:25:35 +04:00
John Preston
e5f2d83548 Support new rounding in bot inline keyboards. 2022-11-01 19:25:35 +04:00
John Preston
b13471672d Move some chat styles from basic.style to chat.style. 2022-11-01 19:25:34 +04:00
John Preston
3b3792ef75 Allow editing topic title and icon. 2022-11-01 19:25:33 +04:00
John Preston
749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
John Preston
3c19d7b302 Show shared link long URL tooltips. 2022-07-27 14:24:34 +03:00
John Preston
d9bbfeead1 Provide section title from the section class. 2022-04-05 16:31:09 +04:00
John Preston
95f5f28906 Add search to the Downloads section. 2022-03-11 15:14:07 +04:00
John Preston
6dd720b76e Don't show downloads bar while message is visible. 2022-03-09 14:52:44 +04:00
John Preston
dd5aeeb65a Show information about downloads from cloud. 2022-03-01 18:59:59 +03:00
John Preston
3262c2d1b9 Support select by drag in Downloads. 2022-03-01 18:55:35 +03:00
John Preston
2917a53b75 Beta version 3.5.3: Fix build with GCC. 2022-02-28 23:25:55 +03:00
23rd
5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
John Preston
a61048d219 Fix scroll state management in Downloads. 2022-02-27 20:26:52 +03:00
John Preston
bff8313a37 Use nice media names in Downloads. 2022-02-27 20:26:52 +03:00
John Preston
dde4868540 Add phrases to lang.string. 2022-02-27 20:26:52 +03:00
John Preston
e89c95551f Show correct downloads elements context menu. 2022-02-27 20:26:52 +03:00
John Preston
5ddcf402bc Show download start date in Downloads section. 2022-02-27 20:26:52 +03:00
John Preston
3425dc027c Show downloaded files in Downloads. 2022-02-27 20:26:52 +03:00
John Preston
1f2eba9dc9 Fix empty state of Downloads section. 2022-02-27 20:26:52 +03:00
John Preston
e6294f48de Track all required sessions notifications. 2022-02-25 19:41:15 +03:00
John Preston
93c6038992 Start showing downloading items in Downloads. 2022-02-25 19:41:15 +03:00
John Preston
91c46dbc85 Allow Info::Media::ListWidget use different data providers. 2022-02-25 19:41:15 +03:00
John Preston
6daa267329 Adjust privacy edit boxes to the mockup. 2022-02-25 14:14:42 +03:00
John Preston
1657c2c7f2 Fix context menu on sent images / documents. 2022-01-17 19:21:34 +03:00
John Preston
f24f78c0cc Use click handler property instead of dynamic cast. 2022-01-14 21:55:48 +03:00
John Preston
a15ef8bbc2 Check noforwards of specific messages in shared media. 2021-12-30 16:15:38 +03:00
John Preston
e148b5ff08 Proof-of-concept reactions dropdown. 2021-12-29 21:22:33 +03:00
John Preston
2c36623cfb Add some icons to popup menus. 2021-12-29 21:22:33 +03:00
John Preston
75337ad1c2 Fix shared media list in migrated groups. 2021-12-23 00:07:26 +00:00
John Preston
a7e552ccab Fix assertion violation in media overview.
Regression was introduced in 5e7e7eaa83.
2021-12-22 13:05:54 +00:00
John Preston
5e7e7eaa83 FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
John Preston
f7ec60b958 Fix crash in opening shared media with another user. 2021-12-01 13:29:19 +04:00
John Preston
5309af5d56 Restrict shared media selection in noforward chats. 2021-11-30 16:26:47 +04:00
John Preston
80fcffcc40 Delete history for specific days in private chats. 2021-11-26 18:00:19 +04:00
John Preston
96c910190b Restrict saving files as if noforwards. 2021-11-26 18:00:18 +04:00
Ilya Fedin
847c01d605 Add Qt 6 support
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
23rd
9117b3cdfa Extracted DeleteMessagesBox to separated file. 2021-10-19 06:34:27 +03:00
John Preston
1e660fc2a2 Allocate 64 bits for message ids. 2021-09-30 13:49:37 +04:00
John Preston
2a2607d026 Custom colors in history_view_service_message module. 2021-09-06 13:13:26 +03:00