John Preston
54c2769d8a
Improve voice /video chat members management.
2021-05-24 22:45:14 +04:00
John Preston
6e34360f7e
Move some group call modules.
2021-05-24 22:45:13 +04:00
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
John Preston
04c0d79ccc
Add payment button icon to the corner.
2021-04-13 17:21:24 +04:00
23rd
61741b53c3
Fixed display of rescheduling selected messages in other sections.
2021-04-12 10:48:16 +04:00
John Preston
4ecd1049b2
Allow scheduling voice chats for up to 7 days.
2021-04-12 10:48:16 +04:00
John Preston
1342077dcb
Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId.
2021-04-09 15:05:00 +04:00
John Preston
d7e90fec1a
Add a nice countdown to scheduled voice chat panel.
2021-04-06 18:41:16 +04:00
John Preston
15d17c8b0e
Add creating of a scheduled group call.
2021-04-06 18:41:16 +04:00
John Preston
00c915e58d
Add support for inline invoices.
2021-04-06 18:41:15 +04:00
Ilya Fedin
ae0b9141dd
Trying to get rid of unused variables...
2021-03-15 11:40:44 +03:00
Ilya Fedin
c0c10689a1
Get rid of deprecated ranges::view usage
2021-03-13 19:14:58 +03:00
Ilya Fedin
f25b2a2094
Apply autofixes from clazy
2021-03-13 15:25:47 +03:00
John Preston
68b0a85369
Rename RPCError to MTP::Error.
2021-03-12 16:58:26 +04:00
John Preston
02517f7221
Update API scheme to layer 125.
2021-03-12 16:58:26 +04:00
John Preston
2509f05e28
Fix clearing of album thumbnails cache.
...
I hope it fixes #7361 .
2021-03-12 16:09:58 +04:00
23rd
658671089e
Added timestamp highlighting in voice captions.
2021-03-05 13:36:39 +03:00
John Preston
54f06740d5
Remove some App::wnd() calls.
2021-03-03 11:29:26 +04:00
John Preston
8142acc709
Remove legacy #feed code.
2021-02-25 17:03:51 +04:00
John Preston
aa46ec8bc1
Load photo thumbnail only if no inline thumbnail found.
2021-02-22 23:42:42 +04:00
John Preston
48821af475
Toggle selection by comments button click.
2021-02-22 23:42:42 +04:00
John Preston
467449ac13
When reporting peer allow to select messages first.
2021-02-22 23:42:42 +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
18d62c070d
Show auto-delete info in message context menu.
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
John Preston
baccec623d
Allow opening large (> 512px) stickers in media viewer.
2021-02-17 19:15:49 +04:00
John Preston
8ec60e0321
Show all .webp as stickers.
...
Allow opening stickers not from stickerpacks in media viewer.
2021-02-17 10:46:36 +04:00
John Preston
dcebefe2bb
Fix layout of round video messages.
2021-02-17 10:46:36 +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
776c099a25
Limited maximum number of selected messages for rescheduling to 20.
2021-02-09 19:26:56 +04:00
John Preston
d782ea63f8
Fix audio file forward inconsistencies.
2021-02-04 19:58:57 +04:00
23rd
0b4d0b83c2
Removed App::wnd from classes that have pointer to Window::Controller.
2021-02-04 18:13:04 +04:00
23rd
0cb8f2cc85
Added ability to toggle silent broadcast from sections.
...
Fixed #8655 .
2021-02-04 18:13:03 +04:00
23rd
03a5619d61
Added ability to reschedule multiple messages.
...
Fixed #9851 .
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
23rd
6c0553f4d6
Returned default icon color for songs without cover art.
...
Related commit: 9b9531d279
.
2021-01-29 18:24:52 +03: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
1ec6b4313d
Remove redundant Cancel button in ScheduleBox.
2021-01-29 13:56:15 +04:00
John Preston
dd401a063b
Set preview as cancelled if no preview in editing message.
2021-01-27 20:26:27 +04:00
John Preston
7410c1fc73
Fix display of imported messages in private chats.
2021-01-25 16:50:59 +04:00
John Preston
19455d44db
Add support for imported messages.
2021-01-25 16:50:58 +04:00
John Preston
50c07bfc98
Update API scheme, add view link box.
2021-01-25 16:50:58 +04:00
John Preston
97fb310f54
Move CalendarBox and ChooseDateTimeBox to td_ui.
2021-01-25 16:50:56 +04:00
John Preston
1cce383d15
Add a box to create / edit invite links.
2021-01-25 16:47:41 +04:00
23rd
9b9531d279
Replaced icon color for songs with bright one.
2021-01-24 10:41:10 +03:00
23rd
d4bbbdb65c
Replaced rand_value util function with openssl::RandomValue.
2021-01-24 10:41:10 +03:00
23rd
dd01ece14a
Replaced snap util function with std::clamp.
2021-01-24 10:41:10 +03:00
23rd
2616659116
Added missed date detailed info in tooltips to admin log and sections.
2021-01-22 16:53:59 +04:00
23rd
1ccfcc824c
Updated code to be consistent with lib_ui.
2021-01-22 16:53:59 +04:00
23rd
3fadf2ee54
Added Up arrow shortcut to edit comments.
2021-01-11 22:46:56 +03:00
23rd
15254599e2
Unified checking for editable message.
2021-01-11 22:46:56 +03:00
23rd
8fffe7d128
Added ability to show song cover in HistoryView and Overview::Layout.
2021-01-11 22:46:45 +03:00
23rd
a030911ad5
Fixed filling context menu in TabbedPanel between sections.
...
Fixed #10082 .
2021-01-09 14:24:41 +03:00
John Preston
b6b7f5706f
Show small voice chat button for empty voice chats.
2021-01-05 21:15:19 +04:00
23rd
0bdb38753b
Added items for polls to context menu in sections.
...
Fixed #10055 .
2021-01-05 21:15:19 +04:00
John Preston
3a34881488
Highlight album part that had a reply clicked.
2020-12-30 12:56:44 +04: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
John Preston
bcd2560e8f
Reuse the code for userpics in Calls::TopBar.
2020-12-25 14:10:08 +04:00
John Preston
7fd09084fd
Use separate keys for message links and links.
2020-12-22 19:16:54 +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
d69caacded
Improve top bar icons layout.
2020-12-14 19:56:01 +04:00
John Preston
b6483cb65c
Use shared_ptr<Memento> for sections.
2020-12-14 18:48:10 +04:00
23rd
baba7e272d
Updated phrase and colors for force muted state in group calls.
2020-12-14 17:58:45 +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
1b624d67b8
Support voice chats in legacy groups, with migration.
2020-12-14 16:52:18 +04:00
John Preston
7217d14f09
Show speaking animations in voice chat bar.
2020-12-11 18:53:02 +04:00
John Preston
fe23ba086a
Animate userpics in join voice chat bar.
2020-12-11 17:16:37 +04:00
John Preston
424ba1dbea
Track speaking state in non-joined voice chats.
2020-12-11 15:04:34 +04:00
John Preston
49b8340695
Fix top bar controls in chat view.
2020-12-11 14:20:17 +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
7feb841081
Create voice chats with confirmation.
2020-12-09 16:24:25 +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
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
a61567e1a8
Create a call in legacy group with migration.
2020-12-08 13:52:48 +04:00
John Preston
dde94d486b
Change button round radius.
2020-12-08 11:19:23 +04:00
John Preston
ba185d1f6f
Change group call icon in top bar.
2020-12-07 17:15:45 +04:00
John Preston
fdbe6bdeb2
Add voice chat indicator in the chats list.
2020-12-02 13:52:33 +03: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
c109e35d95
Fixed send options in CreatePollBox and SendFilesBox in replies.
2020-12-01 09:45:24 +03:00
John Preston
624ee3bf60
Send speaking typing actions.
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
c42ef54417
Join call instead of creating a new one.
2020-12-01 09:45:23 +03:00
John Preston
5339523824
Add userpics to the active call bar.
2020-12-01 09:45:23 +03:00
John Preston
e3a73378e7
Add recent members userpics to group call bar.
2020-12-01 09:45:23 +03:00
John Preston
e66a72876c
Show call button only when you can create voice chat.
2020-12-01 09:45:22 +03:00
John Preston
2e62eb1186
Start group call members list.
2020-12-01 09:45:22 +03:00
John Preston
41591ff2e9
Add group calls top 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
John Preston
3aa2619a7f
Update API scheme to layer 122.
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
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
a6e4ac679c
Fixed reply stuck display at sending voice in Replies section.
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
23rd
eadd952e66
Added animation for recorded voice data delete.
2020-11-17 12:58:07 +03:00
23rd
fb2924f2d6
Fixed size and position of lock/stop button at end of animation.
2020-11-17 12:58:07 +03:00
23rd
7dac42b523
Added ability to play/pause recorded voice data with Space key.
2020-11-17 12:58:07 +03:00
23rd
d2defabd4b
Improved waveform display of recorded voice data.
2020-11-17 12:58:07 +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
2668619758
Added ability to seek recorded voice data.
2020-11-17 12:58:07 +03:00
23rd
5eba680483
Added play button for recorded voice data.
2020-11-17 12:58:07 +03:00
23rd
7826d0246d
Added duration display of recorded voice data.
...
const qptr
2020-11-17 12:58:07 +03:00
23rd
189c940710
Added waveform display of recorded voice data.
2020-11-17 12:58:07 +03:00
23rd
8b2bb722de
Added ability to send and cancel recorded voice data with keys.
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
23rd
647cbc5464
Added initial ability to delete recorded voice data.
2020-11-17 12:58:07 +03:00
23rd
131c2e1c56
Slightly refactored waveform paint in voice messages.
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
4f22171dd6
Add start bot command and handle via@ links.
2020-11-17 12:57:03 +03:00
John Preston
10adbecb9c
Support creating polls in RepliesSection.
2020-11-17 12:56:51 +03:00
John Preston
a8564b166b
Add inline bots to ComposeControls.
2020-11-17 12:56:51 +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
5d2ffae215
Improved VoiceRecordButton colors.
2020-11-17 12:56:51 +03:00
23rd
1d120092cf
Fixed previous values resetting in VoiceRecordButton.
2020-11-17 12:56:51 +03:00
23rd
2035392564
Removed bezier circle paint when animations are disabled.
2020-11-17 12:56:51 +03:00
23rd
c4897cec0a
Replaced dummy lock icons with lock animation.
2020-11-17 12:56:51 +03:00
23rd
dd462eb8cf
Slightly improved animation of bezier circle in VoiceRecordButton.
2020-11-17 12:56:51 +03:00
23rd
71e8bda7bb
Replaced raw variables for animations in VoiceRecordButton.
2020-11-17 12:56:51 +03:00
23rd
ce1ae5ba12
Removed redundant code from VoiceRecordButton.
2020-11-17 12:56:51 +03:00
23rd
6ae15485ad
Added show animation to VoiceRecordButton.
2020-11-17 12:56:51 +03:00
23rd
7a32d78689
Replaced record circle button with bezier circle.
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
367b487a6c
Prettified fast locking of voice record.
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
6ed7615653
Removed redundant methods for record from SendButton.
2020-11-17 12:56:50 +03:00
23rd
cab22c07a5
Replaced recording animation with simple red circle animation.
2020-11-17 12:56:50 +03:00
23rd
ba3862e70f
Added new send recorded voice button with recording animation.
2020-11-17 12:56:50 +03:00
23rd
4970740739
Fixed voice recording lock position on resizing.
2020-11-17 12:56:50 +03:00
23rd
cdb77d46b1
Slightly refactored text drawing in VoiceRecordBar.
2020-11-17 12:56:50 +03:00
23rd
b6743feec1
Added ability to send recording voice message with Enter key.
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
914e40fb62
Added red coloring of record button.
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
43635f6e4b
Slightly optimized paint in VoiceRecordBar.
2020-11-17 12:56:50 +03:00
23rd
ebe1fa7408
Improved duration text paint in VoiceRecordBar.
2020-11-17 12:56:50 +03:00
23rd
5c006002b6
Added appearance animation to VoiceRecordBar.
2020-11-17 12:56:50 +03:00
23rd
3e4866d3b7
Moved active animation processing from SendButton to VoiceRecordBar.
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
23rd
fd76b44dbd
Replaced voice record processing with VoiceRecordBar in ComposeControls.
2020-11-17 12:56:50 +03:00
23rd
112dea8594
Created voice record bar as separated history view class.
2020-11-17 12:56:50 +03:00
23rd
6d775d6f45
Moved structures of compose controls to separated header.
2020-11-17 12:56:50 +03:00
23rd
f7c6876e1b
Moved history_view_compose_controls to controls folder.
2020-11-17 12:56:50 +03:00
Ilya Fedin
5c8820d5d8
Use QClipboard::supportsSelection instead of ifdefs
2020-11-06 08:56:50 +03:00
John Preston
039cad21a5
Fix view refresh for album part messages.
...
Fixes #8974 .
2020-11-05 17:50:58 +03:00
John Preston
d09ece4203
Fix albums of music files.
2020-11-05 14:58:46 +03:00
John Preston
07f07c5eeb
Fix selection in album captions.
...
Fixes #8950 .
2020-11-02 11:26:40 +03:00
John Preston
b179e5332a
Improve layout of file albums with views/replies.
2020-11-02 11:26:40 +03:00
John Preston
6660206e61
Fix poll results opening from pinned section.
...
Fixes #8942 .
2020-11-02 11:26:39 +03:00
John Preston
b7319c00b9
Fix go to original button in Pinned section.
2020-10-30 18:32:22 +03:00
23rd
9a2fcdde29
Fixed fast share button's display in section of pinned messages.
2020-10-30 18:32:22 +03:00
John Preston
de459fa1fe
Improve slot machine animations.
2020-10-30 18:32:22 +03:00
John Preston
a532ae81b3
Fix cancel of album parts uploading.
2020-10-30 18:32:22 +03:00
John Preston
324affb8b9
Fix go to original button in outgoing albums.
2020-10-30 18:32:22 +03:00
John Preston
6e682643df
Fix captions selection in column albums.
2020-10-30 18:32:21 +03:00
John Preston
6d9c529a65
Fix caption edit in column albums.
2020-10-30 18:32:21 +03:00
John Preston
77fa29f8ce
Pin/unpin first item of an album.
2020-10-30 18:32:21 +03:00
John Preston
75c420b9d7
Check items before deleting by 'Delete' key.
2020-10-30 18:32:21 +03:00
John Preston
e4f039b141
Improve pinned messages title.
2020-10-30 18:32:21 +03:00
John Preston
2233058ae0
Move pin icon to the right.
2020-10-30 18:32:21 +03:00
John Preston
77894d1445
Fix sending files in scheduled messages.
2020-10-30 18:32:21 +03:00
John Preston
68041d2ffb
Merge pinned list with migrated legacy group.
2020-10-30 18:32:20 +03:00
John Preston
12debce246
Show checks when sending file albums.
2020-10-30 18:32:20 +03:00
John Preston
3dbc131b98
Show pin icon in pinned messages.
2020-10-30 18:32:20 +03:00