Commit graph

564 commits

Author SHA1 Message Date
John Preston
8f0e23bb25 Improve editing messages with link previews.
Now preview state can be one of (allowed, cancelled, empty-in-edit).

In case of editing a message without preview we set the state to
empty-in-edit and it changes to allowed if the links in the message
are changed somehow.

That way we don't need to cancel the preview when editing a message
with a cancelled preview and at the same time adding a link to
a message that had no preview in the first place will add a preview.
2021-01-29 15:27:17 +04:00
John Preston
dd401a063b Set preview as cancelled if no preview in editing message. 2021-01-27 20:26:27 +04:00
23rd
dd01ece14a Replaced snap util function with std::clamp. 2021-01-24 10:41:10 +03:00
23rd
15254599e2 Unified checking for editable message. 2021-01-11 22:46:56 +03:00
23rd
a030911ad5 Fixed filling context menu in TabbedPanel between sections.
Fixed #10082.
2021-01-09 14:24:41 +03:00
John Preston
3fd62d51aa Hide bot command start button when editing message.
Fixes #9941.
2020-12-30 16:27:32 +04:00
John Preston
3a34881488 Highlight album part that had a reply clicked. 2020-12-30 12:56:44 +04:00
23rd
3940d57c3d Disabled message editing while voice recording. 2020-12-30 10:59:49 +04:00
John Preston
d7496f9824 Fix possible crash in app shutdown. 2020-12-22 19:16:54 +04:00
John Preston
7a07acb124 Fix group call bar in legacy groups. 2020-12-18 19:21:57 +04:00
23rd
4b41962ff6 Added hiding of Blob animations in GroupCallBar. 2020-12-18 17:45:33 +03:00
23rd
50ed60f443 Fixed ability to reply with voice message. 2020-12-18 03:40:43 +03:00
John Preston
b6483cb65c Use shared_ptr<Memento> for sections. 2020-12-14 18:48:10 +04:00
23rd
77775b5f7c Added ability to use application while recording voice message. 2020-12-14 17:09:24 +04:00
23rd
24b8377a2a Added initial implementation of display sections prevent. 2020-12-14 17:09:24 +04:00
23rd
c8643aa1ee Wrapped raw SectionMemento with unique_ptr. 2020-12-14 17:09:24 +04:00
23rd
de20ff05eb Fixed draft applying while recording voice message in HistoryWidget.
Relevant commit: d15a5c9bdc.
2020-12-14 17:09:23 +04:00
John Preston
1b624d67b8 Support voice chats in legacy groups, with migration. 2020-12-14 16:52:18 +04:00
John Preston
df420e4ccf Revert "Use gtk not only to get image from clipboard, but also to set"
This reverts commit f88c132c96.

Fixes #9885.
2020-12-11 12:00:52 +04:00
John Preston
085eef15c2 Revert "Fixed draft applying while recording voice message in HistoryWidget."
This reverts commit 346547c23d.

Fixes #9871.
2020-12-09 15:50:40 +04:00
Ilya Fedin
f88c132c96 Use gtk not only to get image from clipboard, but also to set 2020-12-08 21:18:49 +03:00
John Preston
546881c720 Join other calls with confirmation. 2020-12-08 19:09:13 +04:00
John Preston
49fc066480 Handle GROUPCALL_FORBIDDEN in joinGroupCall. 2020-12-08 13:39:54 +04:00
John Preston
a527d5c535 Improve join group call bar style. 2020-12-08 10:44:22 +04:00
23rd
346547c23d Fixed draft applying while recording voice message in HistoryWidget. 2020-12-01 09:45:24 +03:00
23rd
7b837e5138 Fixed section scrolling above voice recording lock. 2020-12-01 09:45:24 +03:00
John Preston
d5216a30c7 Forbid anonymous admins joining group calls. 2020-12-01 09:45:23 +03:00
John Preston
267c2d32f0 Fix shadow of group call bar. 2020-12-01 09:45:21 +03:00
John Preston
33941ad1b9 Start group call bar in HistoryWidget. 2020-12-01 09:45:21 +03:00
23rd
0a0dcb9054 Delegated responsibility for clearing listen state to sections. 2020-11-19 18:41:13 +03:00
John Preston
c98a3825a5 Fix sending bot commands from autocomplete. 2020-11-18 14:50:10 +03:00
23rd
e0cc3791ff Added edit message prevent when there is unsent recorded voice data. 2020-11-17 12:58:07 +03:00
23rd
6ecc446a8a Added ability to schedule and send without sound recorded voice data. 2020-11-17 12:58:07 +03:00
23rd
a19e3ca3dc Added initial ability to send recorded voice data from listen state. 2020-11-17 12:58:07 +03:00
John Preston
b3eb7858e6 Save local drafts in scheduled / replies sections.
Fix inline bot switch inline in scheduled / replies sections.
2020-11-17 12:58:07 +03:00
John Preston
4a0efb9114 Remove Q_OBJECT from HistoryWidget. 2020-11-17 12:58:07 +03:00
John Preston
f04b3da76a Add return from bot switch_pm to Scheduled/Replies. 2020-11-17 12:58:06 +03:00
John Preston
4a8b59b788 Pass reply info to Window::PeerMenu. 2020-11-17 12:58:06 +03:00
John Preston
cf6ca3b1ac Handle bot command clicks in Replies / Scheduled. 2020-11-17 12:56:51 +03:00
John Preston
ac02e2be9e Add FieldAutocomplete to ComposeControls. 2020-11-17 12:56:51 +03:00
23rd
cb84e70bdc Improved display management of voice record controls. 2020-11-17 12:56:51 +03:00
23rd
041d8571c2 Added delay for start recording voice message. 2020-11-17 12:56:50 +03:00
23rd
57eb4f8234 Disabled drag'n'drop area when user is recording voice message. 2020-11-17 12:56:50 +03:00
23rd
ad4bf9b5c8 Improved VoiceRecordBar support in ComposeControls. 2020-11-17 12:56:50 +03:00
23rd
fe5242d6d2 Added ability to pass filter for Escape key to voice record bar. 2020-11-17 12:56:50 +03:00
23rd
326342420d Added animation of voice recording lock with dummy lock icons. 2020-11-17 12:56:50 +03:00
23rd
478f5f671c Added initial implementation of voice recording lock. 2020-11-17 12:56:50 +03:00
23rd
db564ca486 Replaced voice record processing with VoiceRecordBar in HistoryWidget. 2020-11-17 12:56:50 +03:00
John Preston
87e4bb1059 Fix scroll position restore with pinned bar. 2020-11-09 12:57:49 +03:00
John Preston
a21b6d7416 Fix restoring scroll state with a pinned bar. 2020-11-02 11:44:05 +03:00