Loïc Molinari
336405b3c7
Fix voice record button infinite animation
...
Enabling animations triggers an animation of the voice record button
that keeps firing uselessly at ~120 calls per second until the button
is manually toggled. The animation callback cannot stop itself since
it expects the button to be visible.
This commit fixes the issue by preventing spawning the animation if
the widget is hidden.
2021-04-15 16:22:29 +03:00
Ilya Fedin
ae0b9141dd
Trying to get rid of unused variables...
2021-03-15 11:40:44 +03:00
John Preston
68b0a85369
Rename RPCError to MTP::Error.
2021-03-12 16:58:26 +04:00
John Preston
5b6503bfed
Fix auto-delete button when switching between chats.
2021-02-22 23:42:42 +04:00
John Preston
781e7a2e79
Update API scheme, simplify auto-delete.
2021-02-22 23:42:41 +04:00
John Preston
15e03687f8
Add auto-delete period edit box.
2021-02-22 23:42:41 +04:00
John Preston
dd2dcd7fd9
Update icons in the compose controls.
2021-02-22 23:42:41 +04:00
John Preston
f97064ed37
Add auto-delete control to compose controls.
2021-02-22 23:42:41 +04:00
23rd
bff3291631
Fixed clearing of text field in sections when sending files.
2021-02-12 13:05:50 +03:00
23rd
90f90a4ca3
Fixed accepting of Enter key in box of voice message discarding.
2021-02-09 19:26:56 +04:00
23rd
0cb8f2cc85
Added ability to toggle silent broadcast from sections.
...
Fixed #8655 .
2021-02-04 18:13:03 +04:00
23rd
f1236edf5b
Added ability to select message for reply with Ctrl+Up/Down in sections.
2021-02-04 18:13:03 +04:00
23rd
0b98cfbfec
Added ability to attach file with shortcut in sections.
2021-02-04 18:13:03 +04:00
23rd
062c451c27
Refactored handle of last editable message on Up arrow in sections.
2021-02-04 18:13:03 +04:00
23rd
b13e5ddce9
Moved scroll keys from sections to compose controls.
2021-02-04 18:13:03 +04:00
23rd
4ad0837661
Fixed ability to attach file while editing message in sections.
2021-02-04 18:13:03 +04:00
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
d4bbbdb65c
Replaced rand_value util function with openssl::RandomValue.
2021-01-24 10:41:10 +03:00
23rd
a030911ad5
Fixed filling context menu in TabbedPanel between sections.
...
Fixed #10082 .
2021-01-09 14:24:41 +03:00
23rd
f24b0c6237
Fixed hiding cancel button in state of listen to recorded voice data.
2020-12-30 10:59:49 +04:00
23rd
3940d57c3d
Disabled message editing while voice recording.
2020-12-30 10:59:49 +04:00
23rd
16c7ec5b05
Fixed stack overflow crash in applying draft at end of voice recording.
...
Regression was introduced in 50ed60f443
.
2020-12-22 11:24:56 +03:00
23rd
c14313d64a
Replaced bezier circles in record button with blobs.
2020-12-21 14:03:04 +03:00
23rd
f8039f9b99
Added cancel button to VoiceRecordBar.
2020-12-18 06:00:07 +03:00
23rd
50ed60f443
Fixed ability to reply with voice message.
2020-12-18 03:40:43 +03:00
John Preston
7f7e7b94d6
Fix Escape in comments section.
2020-12-15 12:42:10 +04: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
de6b460754
Fixed visual glitch in Replies section with tall input field.
2020-12-14 17:09:23 +04:00
23rd
bb4be4f3dd
Replaced float interpolation with implementation from lib_ui.
2020-12-14 17:09:23 +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
d15a5c9bdc
Revert "Fixed accidental stop of voice recording in sections."
...
This reverts commit 5f9e497d38
.
Fixes #9871 .
2020-12-09 16:01:09 +04:00
23rd
7b837e5138
Fixed section scrolling above voice recording lock.
2020-12-01 09:45:24 +03:00
23rd
5f9e497d38
Fixed accidental stop of voice recording in sections.
2020-12-01 09:45:24 +03:00
23rd
0a0dcb9054
Delegated responsibility for clearing listen state to sections.
2020-11-19 18:41:13 +03:00
23rd
a2e4403b28
Slightly refactored code for menu with send options.
2020-11-19 18:11:37 +03:00
23rd
e1017380ec
Fixed filling menu with send options for inline bots and autocomplete.
2020-11-19 18:11:37 +03:00
23rd
f75fb33c29
Removed delay for voice lock widget appearing.
2020-11-19 18:11:37 +03:00
23rd
cbaca6382e
Fixed unwanted flickering of record button when recorded data is empty.
2020-11-19 18:11:37 +03:00
23rd
1758f0fd8f
Added send icon to VoiceRecordButton.
2020-11-19 18:11:37 +03:00
23rd
04c068d8b3
Added filling send context menu to TabbedSelector from ComposeControls.
2020-11-17 12:58:08 +03:00
23rd
980ce9fba3
Replaced auto types with explicit types in VoiceRecordBar's lambdas.
2020-11-17 12:58:08 +03:00
23rd
024a35d770
Added ability to send recorded voice data from ComposeControls.
2020-11-17 12:58:08 +03:00
23rd
ab38ddc21d
Added ability to fill send context menu in ComposeControls.
2020-11-17 12:58:08 +03:00
23rd
79cc4da626
Reduced block size for voice record lock.
2020-11-17 12:58:08 +03:00
23rd
92298316ab
Added transform animation from lock to stop icon for recording voice.
2020-11-17 12:58:08 +03:00
23rd
c9314e5e5e
Added ripple animation to stop recording voice button.
2020-11-17 12:58:07 +03:00