Commit graph

2405 commits

Author SHA1 Message Date
John Preston
aed1904b4c Support theming for webview-s (payments, attach). 2022-03-30 12:23:05 +04:00
John Preston
df15ff9f8e Update API scheme on layer 140. 2022-03-30 12:23:05 +04:00
John Preston
1d8aac26ce Proof of concept webview attach menu support. 2022-03-30 12:23:05 +04:00
John Preston
841da9dde8 Update API scheme on layer 140.
Handle attach argument in resolve username links.
2022-03-30 12:23:05 +04:00
John Preston
77dae3a7b6 Version 3.6.2: Fix build on Linux. 2022-03-28 01:27:26 +04:00
23rd
2846aa2f77 Moved SendMenu to separated folder. 2022-03-27 17:59:30 +03:00
23rd
49d090bb4c Added Escape hotkey to hide search messages in dialogs. 2022-03-27 18:56:05 +04:00
23rd
307894415f Added support of close prevention for search messages in dialogs. 2022-03-27 18:56:05 +04:00
23rd
069413c19c Added caching of result of search messages in dialogs. 2022-03-23 10:03:43 +04:00
23rd
03c5e67047 Fixed focus of field in search messages in HistoryWidget. 2022-03-23 10:03:43 +04:00
23rd
df38dde296 Added search messages to HistoryWidget. 2022-03-23 10:03:43 +04:00
23rd
a141a9404f Added list of result of search messages in dialogs. 2022-03-23 10:03:43 +04:00
23rd
4e7ff63c53 Added support of search messages for migrated histories. 2022-03-23 10:03:43 +04:00
23rd
a1d21cf452 Added ability to search messages from specific peer in dialogs. 2022-03-23 10:03:43 +04:00
23rd
38abfacd88 Added ability to open calendar from search messages in dialogs. 2022-03-23 10:03:43 +04:00
23rd
69e37ad978 Added initial implementation of search of messages in dialogs. 2022-03-23 10:03:43 +04:00
c0re100
0f05a1fd63 Fix incorrect admin log
Type: Restricted to Left
2022-03-23 09:44:35 +04:00
John Preston
dce976d1f9 Fix non-square webm stickers display.
Fixes https://bugs.telegram.org/c/15686
2022-03-18 20:09:07 +04:00
John Preston
e599c829e5 Don't limit possible YouTube video duration.
Fixes #24167.
2022-03-16 19:16:17 +04:00
John Preston
efdc39a273 Fix reply-to names in forwarded messages. 2022-03-16 11:02:45 +04:00
23rd
c9ebec1cf0 Removed base/observer.h from main pch.
Removed unused inheritances from base::Subscriber.
2022-03-15 18:02:30 +03:00
23rd
6793d2cc7c Moved base::Timer to std::unique_ptr in DraggingScrollManager. 2022-03-15 18:02:30 +03:00
23rd
0e6c036fa2 Moved Ui::SelectScrollManager to lib_ui. 2022-03-15 18:02:30 +03:00
23rd
0b336a2954 Fixed sending animation from inline bots with unexpected result type. 2022-03-15 18:02:30 +03:00
John Preston
34f6c6b23f Fix video message frame request.
Fixes #24190.
2022-03-15 17:33:23 +04:00
John Preston
5be72e8ce2 Just compute scheduled ids instead of a lookup. 2022-03-11 11:25:30 +04:00
John Preston
1833fac094 Make scheduled message ids determenistic.
Fixes #6686.
2022-03-11 11:05:02 +04:00
John Preston
32d09f189b Use rpl::empty instead of rpl::empty_value(). 2022-03-11 09:56:29 +04:00
John Preston
e84ebc2a5c Fix download bar appearing after account switch. 2022-03-09 16:02:27 +04:00
John Preston
6dd720b76e Don't show downloads bar while message is visible. 2022-03-09 14:52:44 +04:00
John Preston
98f2f6d4c0 Always try to save original photo bytes to disk. 2022-03-07 11:09:14 +04:00
23rd
63b5eb66ff Provided Window::SessionController to FastShareMessage. 2022-03-06 18:11:47 +03:00
23rd
b9f6591734 Moved out FastShareMessage from history_message. 2022-03-06 18:11:47 +03:00
23rd
fa50a5962c Removed Window::SessionNavigation from ShareBox. 2022-03-06 18:11:47 +03:00
23rd
dd6501ef8f Added ability to provide style to schedule box. 2022-03-06 18:11:47 +03:00
Magnus Groß
4dd14b81e1 Do not remove notification reference on NotificationClosed
In general we need to keep a reference to the notification id, so that
we can delete the notification later from history - unless the
NotificationClosed reason was that the user actively dismissed it, in
which case it is not kept in history anyway (so we can dismiss our
reference too).

-- Background --
Some desktop environments such as KDE keep a history of notifications.
An API is provided to delete notifications from that history by calling
the org.freedesktop.Notifications.CloseNotification endpoint with the ID
of that notification. If the notification was already closed (timed
out), then this will delete the notification from history.

The intent is to clear these notifications from the notification history
as soon as a chat with notifications originating from that person is
opened, as the user is then not interested anymore in those
notifications and to prevent unnecessary clutter in the history widget.
It is also cleared when the chat is read on another device.

-- Problem --
Telegram already has all the code in place to support this
functionality, but unfortunately this did not work on Linux before,
because we listen to the NotificationClosed signal and remove our
reference to the notification id from our internal manager as soon as we
get that signal. This means that we do not clear that notification from
history once we open the chat with that person (unless we open the chat
before the notification has timed out, i.e. if we didn't get the
NotificationClosed signal).

-- Fix --
To fix this, we keep our notification reference (if the notification was
not dismissed by the user), which means that our reference will be kept
around until we open the chat with that person (or close Telegram
entirely).

Since all the needed functionality for deleting notifications was
already in place, this patch is quite short as we only need to keep the
reference around longer than we did before this patch.

Note also that code is already in place to clear notifications for
messages that were read on another device: History::inboxRead() calls
Core::App().notifications().clearIncomingFromHistory()

Fixes #17111
2022-03-05 16:51:02 +04:00
Ilya Fedin
1c8d4ee7ab Get rid of Q_OBJECT in HistoryInner 2022-03-05 16:47:38 +04:00
23rd
bc6d69319c Provided window controller to box of converting channel to gigagroup. 2022-03-04 11:25:10 +03:00
23rd
ed5b83bc62 Fixed unexpected copyright reason from top bar in sections. 2022-03-02 06:11:44 +03:00
23rd
e44961e571 Fixed display of userpic for sponsored messages in channels. 2022-03-01 12:52:31 +03:00
Klemens Nanni
6decece009 Remove unused variables 2022-02-28 23:11:07 +03:00
John Preston
282b3592c2 Show toast about jump-to non-existent message. 2022-02-28 19:53:14 +03:00
23rd
40d97bc6a4 Added ability to start video chat with RTMP as well. 2022-02-28 16:54:08 +03:00
John Preston
664774f474 Fix group call bar with requests bar. 2022-02-28 12:53:50 +03:00
23rd
5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
23rd
6478b7b129 Added menu to HistoryView::TopBarWidget for starting of livestream. 2022-02-28 08:05:02 +03:00
23rd
166d844d55 Divided showing of peer menu from top bar into two methods. 2022-02-28 08:04:46 +03:00
23rd
a3d00b1953 Replaced args for Calls::Instance::startOrJoinGroupCall with struct. 2022-02-28 08:04:46 +03:00
John Preston
a61048d219 Fix scroll state management 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