Commit Graph

1783 Commits

Author SHA1 Message Date
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
John Preston 87e4bb1059 Fix scroll position restore with pinned bar. 2020-11-09 12:57:49 +03:00
John Preston 167a73ef1b Add sent/read checks for some service messages. 2020-11-09 12:36:15 +03:00
John Preston 74d2313784 Build Linux version with Qt 5.15.1 in CentOS 7 docker. 2020-11-06 11:21:34 +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 a21b6d7416 Fix restoring scroll state with a pinned bar. 2020-11-02 11:44:05 +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 303684fef5 Version 2.4.5: Fix build on Xcode 12 and Linux. 2020-10-30 21:30:55 +03:00
John Preston 0687cea1ed Fix unpinning all messages. 2020-10-30 18:32:22 +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 3febace163 Fix scroll through pinned items. 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 793ec84098 Fix pinned message of self-destruct media. 2020-10-30 18:32:21 +03:00
John Preston 53c308c24b Loop pinned messages in the top bar. 2020-10-30 18:32:21 +03:00
John Preston 08f7069370 Implement new choosing of shown pinned message. 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 59e0717dac Show pin/unpin correctly in Recent Actions. 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 c2753a9caf Add checkbox 'Pin also for {user}'. 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
John Preston 994e3d8da7 Add hide / unpin all button in pinned section. 2020-10-30 18:32:20 +03:00
John Preston 61d335469f Improve context menu in pinned section. 2020-10-30 18:32:20 +03:00
John Preston ebbe75ac0a Fix scrolling to message in pinned section. 2020-10-30 18:32:20 +03:00
John Preston cd5cad72bd Use only shared media code for pinned tracking. 2020-10-30 18:32:20 +03:00
John Preston 59b4c5dad9 Show winning top with three same values in slot machine. 2020-10-30 18:32:20 +03:00
John Preston 5f932a8828 Show 'View X Replies' in all groups. 2020-10-30 18:32:20 +03:00
John Preston 47f5a66350 Fix build on macOS. 2020-10-30 18:32:20 +03:00
John Preston d742fa32de Add button to show all pinned messages. 2020-10-30 18:32:20 +03:00
John Preston fc92e3fadd Add pinned messages section. 2020-10-30 18:32:20 +03:00
John Preston aefef948cd Improve multi-pinned message bar. 2020-10-30 18:32:20 +03:00
John Preston a614ccad97 Correctly check media when editing files. 2020-10-30 18:32:19 +03:00
John Preston c4af731b19 Wrap messageActionGeoProximityReached service message. 2020-10-30 18:32:19 +03:00
John Preston 263d6a30f2 Improve grouped files layout in chat. 2020-10-30 18:32:19 +03:00
John Preston bb4fdde616 Fix sending many files with a comment. 2020-10-30 18:32:19 +03:00
John Preston 85d08c8f52 Send files grouped in albums, show captions. 2020-10-30 18:32:19 +03:00
John Preston 202534575b Allow many previews in SendFilesBox. 2020-10-30 18:32:19 +03:00
John Preston 8d2fa313b7 Add setting for grouping files. 2020-10-30 18:32:19 +03:00
John Preston c2f0bcf933 Keep first game sticker frames inside the binary. 2020-10-30 18:32:19 +03:00
John Preston 7f956d32a6 Support slot machine game. 2020-10-30 18:32:18 +03:00
John Preston 3feea400af Fix build on macOS. 2020-10-30 18:32:18 +03:00
John Preston 05eb549a3d Move App::roundRect to Ui::FillRoundRect. 2020-10-30 18:32:18 +03:00
John Preston b3b11bd9e7 Move PreparedFile/PreparedList to td_ui. 2020-10-30 18:32:18 +03:00
John Preston 39cf51c066 Move SendButton/EmojiButton to td_ui. 2020-10-30 18:32:18 +03:00
John Preston af1854e877 Use Ui::PinnedBar in Replies section. 2020-10-30 18:32:18 +03:00
John Preston 0873db58d0 Moved PinnedBar to Ui:: in td_ui. 2020-10-30 18:32:18 +03:00
John Preston 37fb94cbfb Load and show image previews in pinned bar. 2020-10-30 18:32:18 +03:00
John Preston 9b4b15ee6d Handle pinned bar clicks. 2020-10-30 18:32:18 +03:00
John Preston 91a0416037 Implement local pinned bar hiding. 2020-10-30 18:32:18 +03:00
John Preston 67290eed58 Use new message bar for pinned message. 2020-10-30 18:32:18 +03:00
John Preston ae298818a8 Implement message bar with animations. 2020-10-30 18:32:17 +03:00
John Preston b9f40e35cd Switch between pinned messages in chat. 2020-10-30 18:32:17 +03:00
John Preston ec35e3f081 Track multiple pinned messages in MessagesList. 2020-10-30 18:32:17 +03:00
John Preston 399b03beb2 Implement multi-song albums display. 2020-10-30 18:32:17 +03:00
John Preston cc28ba4284 Update API scheme to layer 120. 2020-10-30 18:32:17 +03:00
23rd 943593526f Added ability to see attached stickers from sections. 2020-10-30 13:18:40 +03:00
23rd 8d424f6eaf Added ability to see attached stickers from admin log. 2020-10-30 13:18:40 +03:00
23rd 665e322fce Added ability to see attached stickers on documents.
Fixed #8927.
2020-10-30 13:18:40 +03:00
23rd 391ec8ac28 Moved public var indicating stickers presence to private in PhotoData. 2020-10-30 13:18:40 +03:00
23rd 1459e6f38e Moved request for attached stickers to separate file. 2020-10-30 13:18:40 +03:00
Ilya Fedin bb94507af1 Use UrlClickHandler::Open instead of File::OpenUrl 2020-10-30 11:52:10 +03:00
John Preston 53ac4c00ad Track deleted messages carefully.
Fixes #8855.
2020-10-23 16:35:43 +03:00
John Preston 3d54a263b8 Stop playing documents when items are deleted. 2020-10-23 15:22:38 +03:00
23rd 3a2b772a5d Added spellchecker to Replies / Scheduled messages sections.
Fixed #8793.
2020-10-23 13:32:44 +03:00
23rd bc8f8bc68c Added auto-closing to some boxes which depend on certain message. 2020-10-23 13:32:44 +03:00
23rd bc7975ece7 Fixed crash when user reschedules already sent message.
Fixed #8867.
2020-10-23 13:32:43 +03:00
23rd 52cca98144 Fixed replies button display in section of scheduled messages. 2020-10-23 13:32:43 +03:00
John Preston 1cabfaa6a4 Fix cancel / crash in sending album to scheduled messages.
Fixes #8788
2020-10-23 11:22:38 +03:00
John Preston 0c1175f9cd Fix broadcast field placeholder update. 2020-10-07 14:41:21 +03:00
23rd 0c1312419a Fixed crash when user schedules message with elapsed date.
Fixed #8764.
2020-10-07 14:30:29 +03:00
John Preston cd506dfff5 Fix reply_to_top_id in local sent stickers.
Fixes #8758.
2020-10-06 14:01:19 +03:00
John Preston 5a3733b5b6 Fix selecting stickers in Replies section. 2020-10-06 13:46:19 +03:00
John Preston 22a85016e3 Show rank in anonymous outgoing messages. 2020-10-06 10:23:58 +03:00
John Preston 9acf617c9f Show full cached song as downloaded. 2020-10-06 10:10:22 +03:00
John Preston 616531b0d0 Fix author signature in discussion posts. 2020-10-05 16:21:34 +03:00
John Preston 473803edb8 Fix comments button getState / remove. 2020-10-05 16:21:34 +03:00
John Preston 4b6d74dd9b Fix opening Replies section on unread bar. 2020-10-02 19:29:29 +03:00
John Preston f10ef26226 Fix message right badge refresh.
Fixes #8669.
2020-10-02 17:46:27 +03:00
John Preston 6b084301be Allow delete all from service message. 2020-10-02 16:02:09 +03:00
23rd 498e82b804 Added ability to scroll to replying message on reply header click. 2020-10-02 15:57:17 +03:00
John Preston 8c224f7aca Allow block & report from service message. 2020-10-02 15:52:26 +03:00
John Preston 0299ba4873 Allow in groups to delete service messages for everyone.
Fixes #8690.
2020-10-01 18:21:39 +03:00
John Preston ddad42d80e Add report button to comments context menu.
Fixes #8679.
2020-10-01 17:06:04 +03:00
John Preston c6f66e83ee Fix restriction label display.
Fixes #8680.
2020-10-01 16:53:39 +03:00
John Preston c6ef2b057e Fix couple of visual glitches.
Fixes #8676.
2020-10-01 16:29:09 +03:00
John Preston 784f10678c Fix root comments post layout. 2020-10-01 15:12:57 +03:00
John Preston 92dbd7089b Fix comments layout bug for narrow photos. 2020-10-01 14:05:26 +03:00
John Preston 415990c913 Show View thread button only in discussions for now. 2020-10-01 13:38:36 +03:00
John Preston e42af74dd2 Don't try to open comments in invite peek channel. 2020-10-01 13:15:10 +03:00
John Preston bd1a46252d Show admin rank for anonymous posts. 2020-10-01 12:57:03 +03:00
John Preston 81457693f1 Don't add comments button for inline markup messages.
Fixes #8664.
2020-10-01 11:44:08 +03:00
John Preston 3a700650be Remove comments info if no info in server data. 2020-10-01 11:34:59 +03:00
John Preston d642c3f3b5 Hide bot about header for Replies chat. 2020-10-01 11:19:14 +03:00
John Preston 4be03ffc25 Fix PageUp/PageDown scrolling in Replies section.
Fixes #8666.
2020-10-01 11:00:29 +03:00
John Preston 3aa1b1e9ae Fix recent commenters userpics border. 2020-10-01 10:52:53 +03:00
John Preston 4e8a1f8d29 Fix voice messages sending. 2020-10-01 10:47:03 +03:00
John Preston 11e03a181d Version 2.4: Fix crash in typing animations. 2020-09-30 21:11:24 +03:00
John Preston 4e366dc86e Fix widget order in compose controls. 2020-09-30 21:11:24 +03:00
John Preston 745bbfe268 Fix fast reply from message corner in Replies section. 2020-09-30 21:11:24 +03:00
John Preston d4f2c96322 Version 2.4: Fix build on macOS. 2020-09-30 19:58:30 +03:00
John Preston cc9eb7f893 Support write restrictions in Replies section. 2020-09-30 18:38:58 +03:00
John Preston 94c2969f8b Support slowmode restrictions in Replies section. 2020-09-30 16:29:32 +03:00
John Preston 719bed6e85 Move some text formatting to tg_ui:ui/text/format_values. 2020-09-30 16:29:17 +03:00
John Preston 8634c1f7f3 Move lang keys to td_lang library. 2020-09-30 12:18:52 +03:00
John Preston def1266216 Rename td-specific libs from lib_ to td_. 2020-09-30 10:51:17 +03:00
23rd 2e02f27a5c Fixed tabbed selector display in Replies / Scheduled messages sections. 2020-09-29 23:44:03 +03:00
John Preston 405c8125da Allow sending voice messages in Replies / Scheduled. 2020-09-29 19:03:30 +03:00
John Preston 62da24c20b Improve scroll to unread bar. 2020-09-29 19:03:30 +03:00
John Preston e8df47c926 Show send action animations in Replies thread. 2020-09-29 19:03:30 +03:00
John Preston 433c147dd0 Show message from Replies bot inside thread. 2020-09-29 19:03:30 +03:00
23rd f81271d1fe Simplified confirmed callback for ConfirmBox instances. 2020-09-29 19:03:29 +03:00
John Preston 1e31cda78d Fix root comments post layout. 2020-09-29 19:03:29 +03:00
John Preston f7e4f18e9b Fix a crash in failed-sent scheduled messages. 2020-09-29 19:03:29 +03:00
John Preston 0fb42ed82a Use special method for blocking from Replies. 2020-09-29 19:03:29 +03:00
John Preston c32f2e71e8 Update fast action icons. 2020-09-29 19:03:28 +03:00
John Preston 438f69e1b2 Improve root comments message layout. 2020-09-29 19:03:28 +03:00
John Preston 891b4a91a3 Generate correct links to replies section. 2020-09-29 19:03:28 +03:00
John Preston 889139f31f Handle links to replies section. 2020-09-29 19:03:28 +03:00
John Preston 247b1f64ca Show correct outbox ticks in replies section. 2020-09-29 19:03:27 +03:00
John Preston 13ad590a51 Track inbox/outbox comments/replies read state. 2020-09-29 19:03:27 +03:00
John Preston e021e0beb3 Resize scroll area together with pinned root message. 2020-09-29 19:03:27 +03:00
John Preston 27f85df562 Click on root pinned bar throws to replies start. 2020-09-29 19:03:27 +03:00
John Preston d89be1d1d4 Don't read messages in channels I'm not in. 2020-09-29 19:03:27 +03:00
John Preston ab429212e5 Respect global group read position in replies. 2020-09-29 19:03:27 +03:00
John Preston a287dec242 Allow sending typing/send actions for Replies section. 2020-09-29 19:03:27 +03:00
John Preston 61d89113d4 Handle correctly comment links for public channels. 2020-09-29 19:03:26 +03:00
John Preston 7862443fcb Show comments button for unwrapped medias. 2020-09-29 19:03:26 +03:00
John Preston 4c1213ce9e Allow blocking users from Replies chat. 2020-09-29 19:03:26 +03:00
John Preston afbc0c498f Use service message instead of unread bar. 2020-09-29 19:03:26 +03:00