Commit graph

12739 commits

Author SHA1 Message Date
Ilya Fedin
fc66a0eea8 Destroy Wayland integration before Wayland disconnection 2023-05-25 22:05:13 +04:00
John Preston
d57aa2a1f6 Fix possible crash on MTP::Instance shutdown. 2023-05-25 11:56:09 +04:00
John Preston
2fb7bdc803 Skip refocus InputField::Inner if field unfocused.
I hope this fixes #26223.
2023-05-24 21:22:26 +04:00
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
7877463468 Respect peer_types in the switch inline button.
Fixes #26274.
2023-05-24 19:36:58 +04:00
John Preston
8a99de16f6 Allow editing messages even if sending is not allowed. 2023-05-24 18:48:48 +04:00
John Preston
f46f655a0e Revert "Disable xcb_xlib"
This reverts commit d1ff6e583d.

Otherwise HIME input is broken:
https://github.com/telegramdesktop/tdesktop/issues/26228
2023-05-24 18:11:36 +04:00
John Preston
04a3a50e74 Show error when trying change number from TDesktop. 2023-05-24 18:11:17 +04:00
John Preston
d349763460 Fix "Remain Anonymous" change in recent actions. 2023-05-24 17:17:38 +04:00
John Preston
abc32c63b0 Force-hide media viewer on passcode lock. 2023-05-24 16:58:34 +04:00
John Preston
b6395d08d8 Remove streaming channel from live stream "participants". 2023-05-24 13:20:13 +04:00
John Preston
ad573ecc84 Fix a possible crash in Large Emoji toggling. 2023-05-24 12:50:54 +04:00
Ilya Fedin
9514b0d1f1 Get rid of unneeded gi::result wrap 2023-05-19 15:33:43 +04:00
Ilya Fedin
2ea50f5c85 Constify options in Linux screen locker monitor
That's possible now thanks to cppgir update
2023-05-19 15:33:43 +04:00
GitHub Action
3eca5d206b Update User-Agent for DNS to Chrome 112.0.5615.165. 2023-05-19 15:31:10 +04:00
John Preston
90b5c6a582 Version 4.8.2: Hardened Runtime in Mac App Store. 2023-05-18 11:54:56 +04:00
John Preston
65afa2c402 Detach ComposeControls from SessionController. 2023-05-17 15:51:52 +04:00
Ilya Fedin
d1455f5117 Switch Wayland integration to the new type safe Qt API
This also makes object lifetime tracking better thanks to the new API
2023-05-15 12:34:56 +04:00
Ilya Fedin
0ffaff2d8b Support Qt 6.5 dark mode API 2023-05-15 12:33:30 +04:00
Ilya Fedin
2675b5df3b Use QGuiApplication::setBadgeNumber API since Qt 6.6 on Linux 2023-05-15 10:20:18 +04:00
Ilya Fedin
db60bee7dc Implement screen locker monitor on Linux 2023-05-15 09:51:13 +04:00
Ilya Fedin
bb008911b0 Get rid of SystemMediaControls::setServiceName usage 2023-05-15 09:50:28 +04:00
Ilya Fedin
0b4ebcbae4 Warn if incompatible event loop is detected 2023-05-15 08:08:04 +04:00
Ilya Fedin
0a011db483 Get rid of DESKTOP_APP_DISABLE_DBUS_INTEGRATION
Desktop App Toolkit uses GLib as the D-Bus library for quite long time, but GLib is not only a D-Bus library, it's more a basic library providing native Linux APIs implementing various specs. The situation right now is that DESKTOP_APP_DISABLE_DBUS_INTEGRATION disables not only D-Bus code but all the native API integration such as MIME handling or .desktop file parsing. In other words, the option disables native Linux APIs on Linux what is absurd and doesn't have any sense.
2023-05-15 08:08:04 +04:00
John Preston
61a61669b6 Fix build with Xcode. 2023-04-28 22:03:42 +04:00
John Preston
60fe961c21 Implement new client hello generation. 2023-04-27 21:11:03 +04:00
John Preston
9615347634 This should allow calling another authed account. 2023-04-27 15:23:36 +04:00
John Preston
864959aee0 Hide login code with a spoiler in chats list. 2023-04-27 15:23:36 +04:00
Klemens Nanni
11906297d8 Explicitly specify QVector element type to fix build with clang13+range-v3+qt6
Same story as 2b383a4 for #24014.
Fixes 4.8.0 build on OpenBSD/amd64 7.3 with clang 13.0.0, range-v3 0.12.0 and Qt 6.5.0.
2023-04-27 09:59:32 +04:00
John Preston
3da787791f Version 4.8.1.
- Fix sending an album of ten scheduled messages.
- Convert folder back to non-shareable on last link deletion.
- Several fixes of focus control in discussions / channel comments.
- Drop all formatting on paste in non-message input fields.
- Clear search field on archive opening.
- Show video upload / download progress over the spoiler.
- Better support for text-colored emoji in reactions.
- Close archive / topics group when clicking on currently active folder.
- Allow replace media by paste in discussions / comments / scheduled messages.
- Fix stuck Replace Media button after editing media in some chats.
- Quick reply by double click only with the left mouse button.
- Fix applying the same custom chat background with different dimming value.
- Fix "who reacted" list display for media album parts.
- Show full t.me/+ invite link prefix in Recent Actions.
- Don't try to suggest userpic photos to bots.
- Add "Send when online" to the send button context menu.
- Fix crash in empty topics message sending.
2023-04-24 22:52:26 +04:00
John Preston
ad238108bd Fix background dimming slider initial visibility. 2023-04-24 22:50:36 +04:00
John Preston
81f40586a3 Don't re-apply exactly the same custom chat wallpaper. 2023-04-24 22:47:31 +04:00
John Preston
40deda1e9b Divide groupId of scheduled / normal messages. 2023-04-24 22:31:38 +04:00
John Preston
5ad4719c08 Correctly handle shareable->non-shareable conversion. 2023-04-24 21:39:21 +04:00
John Preston
f0acc9526e Fix compose controls focus checks. 2023-04-24 21:32:44 +04:00
John Preston
0b60985966 Clear search field on archive opening. 2023-04-24 21:15:40 +04:00
John Preston
b6fbdd25a0 Show video radial above the spoiler. 2023-04-24 21:12:52 +04:00
John Preston
faf6352a11 Support colorized emoji in reactions inline dropdown. 2023-04-24 20:59:19 +04:00
John Preston
4cfa486d91 Support colorized emoji in reactions fly animation. 2023-04-24 14:56:10 +04:00
John Preston
2dea8941a5 Return focus to input field on ListWidget selection clear. 2023-04-23 20:40:59 +04:00
John Preston
9c7fee0bfe Add .m4v as a video file format. 2023-04-23 20:32:00 +04:00
John Preston
3394094dd3 Close archive / forum on repeated click on current filter. 2023-04-23 20:08:53 +04:00
John Preston
58f735e19b Allow replace media by paste in replies/scheduled. 2023-04-23 19:24:03 +04:00
John Preston
3a8237f03a Fix staying _replaceMedia button after media edit. 2023-04-23 19:23:41 +04:00
John Preston
95174a5f36 Quick reply only by left mouse button. 2023-04-23 19:23:16 +04:00
John Preston
b569078e96 Make dimming intensity part of the cache key. 2023-04-23 18:51:47 +04:00
John Preston
33e66d21bd Force dst path creation on Save Selected. 2023-04-23 18:44:52 +04:00
John Preston
480c109b09 Request WhoRead/Reacted only for group leader. 2023-04-23 18:41:33 +04:00
John Preston
4eefebc96c Fix possible assertion violation in non-self reaction. 2023-04-23 18:41:14 +04:00
John Preston
1697e9e791 Fix a regression in accounts switching. 2023-04-23 18:21:31 +04:00