Commit Graph

286 Commits

Author SHA1 Message Date
23rd 26f287fae0 Added support of posts_between flag for sponsored messages. 2022-11-05 15:44:08 +03:00
John Preston 9d313d2827 Fix focus jump to chats list on channel open. 2022-11-03 18:32:59 +04:00
John Preston 9d4840c0de Respect window active state on mark as read. 2022-11-02 20:13:29 +04:00
John Preston d5ea0149e8 Implement drag-n-drop to forum topics. 2022-11-01 19:25:44 +04:00
John Preston 1ac051a812 Implement forwarding to topics. 2022-11-01 19:25:44 +04:00
23rd c497e9ca9c Slightly optimized includes in HistoryWidget. 2022-11-01 19:25:44 +04:00
John Preston 48fb410bc7 Fix third column profile in topics. 2022-11-01 19:25:42 +04:00
John Preston 602ba5bba9 Implement correct ForumTopic::canWrite logic. 2022-11-01 19:25:42 +04:00
John Preston df5602d203 Support topic icon display in topic profile. 2022-11-01 19:25:40 +04:00
23rd 00df4625e2 Added support of primary username to FieldAutocomplete. 2022-11-01 19:25:39 +04:00
John Preston b8bdca8921 Extract Data::Thread common for History / ForumTopic. 2022-11-01 19:25:37 +04:00
John Preston eec4b72d9a Implement correct jump to message / unread / bottom. 2022-11-01 19:25:37 +04:00
John Preston 3999bca823 Support unread mentions / reactions in topics. 2022-11-01 19:25:36 +04:00
John Preston 6a7f030ee7 Update API scheme on layer 148.
Extract message history corner buttons code.
2022-11-01 19:25:36 +04:00
John Preston 5ce8ed80bf Show premium emoji tooltip on paste. 2022-07-26 20:12:11 +03:00
23rd 38322dc998 Fixed display of quiz solution in sections. 2022-07-26 20:12:10 +03:00
John Preston 754371a295 Optimize custom emoji repaints in pinned bar / reply info. 2022-07-26 20:12:09 +03:00
John Preston 73af96e9c3 Hide reply keyboard if started typing. 2022-06-22 20:15:50 +04:00
John Preston d81c40f4c8 Fix new window crash for unavailable channels. 2022-06-22 15:30:56 +04:00
23rd 8347318c90 Removed some methods with MTP signature from history widget. 2022-06-14 18:38:25 +04:00
23rd 7dac57cc0e Slightly improved includes in HistoryWidget. 2022-06-05 09:11:10 +03:00
23rd c9ef5e47fe Migrated from frequency timer to simple animation for item highlighting. 2022-06-05 09:11:10 +03:00
23rd ba7422805b Moved items highlighting to separate management module. 2022-06-05 09:11:10 +03:00
23rd 8f076b0c9e Added auto-scroll-inactive-chat option. 2022-06-05 09:11:09 +03:00
John Preston be16a7725c Show premium stickers toast on double click. 2022-05-26 12:30:50 +04:00
John Preston ca731968ca Improve premium sticker sync / preview. 2022-05-19 17:27:03 +04:00
John Preston 8890f263af Update API scheme on layer 142. 2022-05-19 17:27:02 +04:00
John Preston c3386fba52 Edit join public group request requirement. 2022-05-19 17:27:01 +04:00
23rd 31cd841b75 Added bot button to bar of pinned messages. 2022-04-25 22:35:02 +04:00
John Preston 94c6793e92 Add bot menu button with webview open support. 2022-04-07 16:31:07 +04:00
John Preston 0374d8caa8 Add "Photo or video" and "Document" attach menu items. 2022-04-05 16:32:02 +04:00
John Preston 426be943a2 Add proof-of-concept webview-bots attach menu. 2022-03-30 12:23:06 +04:00
23rd df38dde296 Added search messages to HistoryWidget. 2022-03-23 10:03:43 +04:00
23rd d633860e1d Added simple animation of static stickers sending. 2022-02-25 19:41:15 +03:00
John Preston d89d8b09da Preload chats in support switch. 2022-02-08 00:24:11 +03:00
John Preston e509da8fd8 Instantly mark as read visible new reactions. 2022-01-28 19:10:07 +03:00
John Preston e9c79886d2 Track unread mentions and unread reactions the same way. 2022-01-28 19:10:07 +03:00
John Preston 5e7e7eaa83 FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
John Preston 8d66680a96 Show info about request chat admin incoming message. 2021-11-26 18:00:20 +04:00
John Preston 773755d70e Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +04:00
John Preston 4691cff3f6 Start SendAsButton in HistoryWidget. 2021-11-26 18:00:18 +04:00
John Preston 4efeaacf5c Add send context menu to StickerSetBox. 2021-11-02 20:11:20 +04:00
23rd 27dc91e51a Moved management of selecting scroll to separated class in td_ui. 2021-10-30 21:22:51 +03:00
John Preston 7543351bc9 Add pending requests bar in the chat. 2021-10-29 18:31:06 +04:00
John Preston 9e05e44a14 Inform about join request being sent. 2021-10-29 18:31:06 +04:00
23rd 419f6345b3 Added sponsored messages to HistoryWidget. 2021-10-07 11:09:09 +04:00
John Preston ab0d2bf9c6 Initial chat theme changing. 2021-09-28 19:27:41 +04:00
John Preston 4273167aa2 Adjust outgoing bubble text and icon colors. 2021-09-07 23:41:08 +03:00
23rd c1d3e5f0c5 Removed sending of typing action when sticker is chose in autocomplete. 2021-09-07 23:41:07 +03:00
John Preston 241798ac29 Custom colors in historyDown/unreadMentions buttons. 2021-09-06 13:13:26 +03:00
John Preston 9dfc60026e Add simple forwarding options on bar click. 2021-08-31 19:47:38 +03:00
John Preston 85e4c8527b Always write local drafts the same way. 2021-08-30 20:32:58 +03:00
John Preston 474a6a71d9 Move unread mentions menu to chat_helpers/send_context_menu. 2021-08-12 10:06:16 +03:00
test f189ffc6ac Summary 2021-08-12 08:52:56 +03:00
23rd 479611f6df Removed ui_getPeerForMouseAction. 2021-07-27 02:50:08 +03:00
23rd a030907598 Refactored sending bot commands. 2021-07-27 02:50:08 +03:00
23rd 34cac3092f Moved utils for sending bot commands to separated file. 2021-07-27 02:50:08 +03:00
John Preston c789349b24 Support add item animation in ListWidget (sections). 2021-07-20 12:20:22 +03:00
John Preston 7bbc4b7191 Add basic new messages animation. 2021-07-20 12:20:22 +03:00
John Preston 4276b6cce0 Use rpl for Window::Theme::Background updates. 2021-07-15 16:42:36 +03:00
23rd bc316a2536 Removed Storage::UploadedThumbDocument struct. 2021-07-06 12:13:05 +03:00
John Preston aaefeed3f1 Support custom keyboard placeholders. 2021-07-05 21:12:52 +03:00
John Preston 68b0a85369 Rename RPCError to MTP::Error. 2021-03-12 16:58:26 +04:00
John Preston 221b896117 Suggest converting to gigagroup. 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 f97064ed37 Add auto-delete control to compose controls. 2021-02-22 23:42:41 +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
23rd 24b8377a2a Added initial implementation of display sections prevent. 2020-12-14 17:09:24 +04:00
John Preston 33941ad1b9 Start group call bar in HistoryWidget. 2020-12-01 09:45:21 +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
23rd cb84e70bdc Improved display management of voice record controls. 2020-11-17 12:56:51 +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 a21b6d7416 Fix restoring scroll state with a pinned bar. 2020-11-02 11:44:05 +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 61d335469f Improve context menu in pinned section. 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 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 8d2fa313b7 Add setting for grouping files. 2020-10-30 18:32:19 +03:00
John Preston b3b11bd9e7 Move PreparedFile/PreparedList to td_ui. 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 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 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 0c1175f9cd Fix broadcast field placeholder update. 2020-10-07 14:41:21 +03:00
John Preston 4e8a1f8d29 Fix voice messages sending. 2020-10-01 10:47:03 +03:00
John Preston d42ce87c09 Move discussion group link to three-dot menu. 2020-09-29 19:03:23 +03:00
23rd 14cda49db2 Moved code for send context menu to namespace. 2020-08-11 18:13:40 +04:00
23rd cf56658664 Slightly refactored FieldAutocomplete. 2020-08-11 18:13:40 +04:00
23rd d1d153e886 Added Api::SendOptions passing from TabbedSelector for inline results. 2020-08-11 18:13:40 +04:00
23rd 759e802eba Added ability to pass Api::SendOptions from TabbedSelector. 2020-08-11 18:13:40 +04:00
23rd 24d02d5461 Replaced creating of drag'n'drop area in HistoryWidget with new way. 2020-07-20 21:44:07 +03:00
23rd b02b690747 Moved HistoryWidget::saveEditMsgDone/Fail to lambdas. 2020-07-17 18:22:38 +03:00
23rd 9445ce4b09 Moved sending of bot's CallbackData and CallbackGame to separate file. 2020-07-14 19:03:41 +04:00