John Preston
b773bb6e70
Add icons to the media viewer menus.
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
Magnus Groß
c2b2d0a92a
Do not destroy drag after launchDrag()
...
On X11 we need to keep the QDrag around a little longer.
Right now, drag is scoped local to launchDrag() and will be destroyed
immediately when launchDrag() finishes. However for X11 we must keep the
drag object alive a little longer. It may only be destroyed once the
drag operation has been accepted by another window, otherwise drag and
drop is broken on Linux and no action happens when something is dragged
from Telegram into another window.
This is because there is still communication happening in the XDND
protocol once QDrag::exec() finishes. See the documentation for
reference: https://freedesktop.org/wiki/Specifications/XDND/
Fixes #17291
2021-12-22 14:15:36 +04:00
John Preston
5e7e7eaa83
FullMsgId rely on PeerId instead of ChannelId.
2021-12-22 10:11:57 +00:00
John Preston
e708b2d39c
Move some icons, fix verified check scaling.
2021-12-03 15:30:40 +04:00
23rd
69dc6c98ce
Removed unused MTPBool from callbacks on done.
2021-11-30 17:37:39 +04:00
23rd
3647241f71
Removed unused MTP::Error from callbacks on fail.
2021-11-30 17:37:07 +04:00
23rd
f255573070
Replaced use of raw MTP* participant type with new transitional class.
2021-11-26 18:00:22 +04:00
23rd
b9c64499bd
Moved code for api participants to separated file.
2021-11-26 18:00:21 +04:00
John Preston
80fcffcc40
Delete history for specific days in private chats.
2021-11-26 18:00:19 +04:00
John Preston
b7c95e9636
Support selecting messages range.
2021-11-26 18:00:19 +04:00
John Preston
4414369fc8
Implement jump-to-start / end by long press in CalendarBox.
2021-11-26 18:00:19 +04:00
John Preston
be7cd51740
Start scrollable CalendarBox.
2021-11-26 18:00:19 +04:00
John Preston
773755d70e
Send as a channel in HistoryWidget.
2021-11-26 18:00:18 +04:00
John Preston
3b2f6b893d
Hide MTPInputFile in Api::RemoteFileInfo.
2021-11-18 11:04:06 +04:00
Ilya Fedin
936d4004ff
Update controls geometry in MainWindow according to body changes
2021-11-10 19:30:29 +04:00
John Preston
7ff74b9e1e
Fix build without DBus.
2021-11-07 12:53:10 +04:00
John Preston
c534f3f22e
Some internal HistoryItem refactoring.
...
Replace most IsServerMsgId / id <=> 0 with isRegular().
Track isLocal / isHistoryEntry in flags.
Remove toHistoryMessage.
2021-11-07 12:50:13 +04:00
John Preston
aef45b3a1d
Refactor icon unread counter painting.
2021-11-02 20:12:57 +04:00
John Preston
97ae094c3c
Update API scheme with new cloud themes.
2021-10-29 18:31:07 +04:00
John Preston
9e05e44a14
Inform about join request being sent.
2021-10-29 18:31:06 +04:00
John Preston
9075489c18
Use last history item date for jump-to-date.
2021-10-21 23:01:13 +04:00
John Preston
d361f5c6b0
Hide native notifications of deleted messages.
2021-10-21 23:01:13 +04:00
Ilya Fedin
847c01d605
Add Qt 6 support
...
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
23rd
ea10cf5758
Moved api polls processing to separated file.
2021-10-20 22:56:19 +03:00
23rd
80461bd9fe
Moved ConfirmBox to Ui namespace.
2021-10-19 06:34:27 +03:00
23rd
6148edbc7d
Moved ConfirmBox to td_ui.
2021-10-19 06:34:27 +03:00
23rd
3fa529d858
Extracted MaxInviteBox to separated file.
2021-10-19 06:34:27 +03:00
23rd
9117b3cdfa
Extracted DeleteMessagesBox to separated file.
2021-10-19 06:34:27 +03:00
23rd
d4fe5f7a83
Extracted PinMessageBox to separated file.
2021-10-19 06:34:27 +03:00
23rd
d8fb5be9b5
Moved opening peer from PeerClickHandler to SessionController.
2021-10-07 23:32:10 +03:00
John Preston
5cd0a3719e
Beta version 3.1.6: Detach FastReply from MarkAsRead.
2021-10-06 19:24:30 +04:00
John Preston
e7cf560da0
Handle toast activations by COM activator.
2021-10-06 11:02:57 +04:00
John Preston
730412fefe
Load albums of last chat messages.
2021-10-04 23:47:33 +04:00
John Preston
8c21fad642
Move preview paint to Dialogs::Ui::MessageView.
2021-10-04 23:45:21 +04:00
John Preston
5136cc3c9c
Rename Dialogs::Layout to Dialogs::Ui.
2021-10-04 23:45:21 +04:00
John Preston
b78b27f517
Move dialogs_layout to dialogs/ui/.
2021-10-04 23:45:21 +04:00
John Preston
4ea72f8f89
Don't add "Change colors" to profile menu.
2021-09-30 15:30:29 +04:00
John Preston
1204e282d3
Fix attach icon in theme preview.
2021-09-28 19:27:41 +04:00
John Preston
ab0d2bf9c6
Initial chat theme changing.
2021-09-28 19:27:41 +04:00
John Preston
19ce1edc16
Use base::SafeRound instead of std::round.
...
Previous assertion violations because of NaN from std::round were
in video streaming, see commits 27d58ba07b
, 8f5830d520
.
Now the crashes happened in the ConvertScale() call from a background
thread when preparing an image from clipboard for sending to a chat.
2021-09-27 12:13:57 +04:00
John Preston
2f5bed2899
Skip "contact joined" toast if disabled in Settings.
...
The chats still appear (they are server-side), but skip the toast.
2021-09-23 17:37:29 +04:00
John Preston
17511749de
Hold only last 5 custom themes in memory.
2021-09-19 18:15:46 +03:00
John Preston
54085c70a4
Select light / dark custom theme based on dialogsBg value.
2021-09-19 17:39:29 +03:00
John Preston
d4db679ce8
Base custom chat themes on a separate light theme.
2021-09-19 14:43:09 +03:00
John Preston
2c7d8858c0
Base custom chat themes on a separate dark theme.
2021-09-19 14:43:09 +03:00
John Preston
e0135e509d
Allow exporting test chat themes.
2021-09-19 14:40:43 +03:00
John Preston
559d4cf4da
Update theme preview.
2021-09-17 13:22:33 +03:00
John Preston
703ea9aacd
Apply scale keeping window center in place.
2021-09-17 10:25:36 +03:00
John Preston
3e681e5449
Always force window frame inside screen geometry.
...
I hope this fixes #16934 .
2021-09-17 10:25:36 +03:00