AyuGramDesktop/Telegram/SourceFiles/info/media
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
..
info_media_buttons.h Added usernames info to ChannelData. 2022-11-01 19:25:38 +04:00
info_media_common.cpp Show correct downloads elements context menu. 2022-02-27 20:26:52 +03:00
info_media_common.h Add search to the Downloads section. 2022-03-11 15:14:07 +04:00
info_media_empty_widget.cpp Implement animated spoilers. 2022-09-18 16:52:30 +04:00
info_media_empty_widget.h Use single LEGAL file with license and copyright. 2018-01-03 13:23:14 +03:00
info_media_inner_widget.cpp Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
info_media_inner_widget.h Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
info_media_list_section.cpp Add search with categories to GIF. 2023-02-02 22:12:31 +04:00
info_media_list_section.h Support select by drag in Downloads. 2022-03-01 18:55:35 +03:00
info_media_list_widget.cpp Show spoilers in shared media overview. 2022-12-27 13:10:38 +04:00
info_media_list_widget.h Fix a possible crash in Go to Message on macOS. 2023-05-24 20:22:41 +04:00
info_media_provider.cpp Show spoilers in shared media overview. 2022-12-27 13:10:38 +04:00
info_media_provider.h Implement per-topic shared media. 2022-11-01 19:25:37 +04:00
info_media_widget.cpp Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
info_media_widget.h Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00