Commit Graph

171 Commits

Author SHA1 Message Date
John Preston 04e7ce4408 Update API scheme on layer 160: Replies. 2023-07-20 07:20:09 +04:00
John Preston f2ed77649e Preload complex last message on demand. 2023-02-09 09:56:54 +04:00
John Preston 719466fcac Initial chat-translation feature implementation. 2023-02-02 22:12:32 +04:00
John Preston 1b73b34810 Make HistoryItem a final class. 2022-12-26 14:24:04 +04:00
John Preston cb653df0f6 Support adaptive forum userpic rounding radius. 2022-12-05 16:18:10 +04:00
John Preston a4e4681835 Add jump-to-topic panel in View as Messages. 2022-12-02 18:20:22 +04:00
23rd 26f287fae0 Added support of posts_between flag for sponsored messages. 2022-11-05 15:44:08 +03:00
23rd 3b79d944af Removed unused includes of observer file. 2022-11-01 20:03:14 +04:00
John Preston 1ac051a812 Implement forwarding to topics. 2022-11-01 19:25:44 +04:00
John Preston 8dc27339b4 Support pinned messages bar in topics. 2022-11-01 19:25:43 +04:00
John Preston 4910a60499 Track mentions / reactions together with unread. 2022-11-01 19:25:40 +04:00
John Preston 08ba277327 Track forum unread state by topics inside. 2022-11-01 19:25:40 +04:00
John Preston 89d0a71591 Update API scheme on layer 148: Drafts in topics. 2022-11-01 19:25:38 +04:00
John Preston d92580b8fc Update API scheme on layer 148: Notifications.
Support editing / respect notification settings for topics.
2022-11-01 19:25:37 +04:00
John Preston b8bdca8921 Extract Data::Thread common for History / ForumTopic. 2022-11-01 19:25:37 +04:00
John Preston 92a4b27e65 Support per-topic notification settings. 2022-11-01 19:25:37 +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 2c0b5b3210 Track unread mentions / reactions in topics. 2022-11-01 19:25:36 +04:00
John Preston 405d8c327d Support different row styles in chats list. 2022-11-01 19:25:34 +04:00
John Preston 8bc807dc40 Set name / phone texts on-demand. 2022-08-09 14:12:19 +03:00
John Preston b976aa0872 Support custom emoji in chats list entries. 2022-07-26 20:12:08 +03:00
John Preston 5be72e8ce2 Just compute scheduled ids instead of a lookup. 2022-03-11 11:25:30 +04:00
John Preston 1833fac094 Make scheduled message ids determenistic.
Fixes #6686.
2022-03-11 11:05:02 +04:00
John Preston 63bf564757 Reaction notifications only from non-blocked contacts. 2022-01-31 16:18:40 +03:00
John Preston e9c79886d2 Track unread mentions and unread reactions the same way. 2022-01-28 19:10:07 +03:00
John Preston df044dbd83 Show local notifications about contact reactions. 2022-01-14 21:55:48 +03:00
John Preston cb8f86bc8d Attach main views to correct HistoryInner-s. 2022-01-05 00:11:29 +03:00
John Preston 611be90880 Rewrite sponsored to use fake sender names. 2021-12-31 16:07:36 +03:00
John Preston a8bc7baa70 Update all messages in case of chat reactions toggle. 2021-12-29 21:22:34 +03:00
John Preston 5e7e7eaa83 FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
John Preston 5e3b094e86 Allow report / block / delete all from channels. 2021-11-26 18:00:20 +04:00
John Preston 80fcffcc40 Delete history for specific days in private chats. 2021-11-26 18:00:19 +04:00
John Preston 213d7875ba Rename insertLocalMessage -> insertMessageToBlocks. 2021-11-08 12:37:02 +04:00
John Preston c534f3f22e Some internal HistoryItem refactoring.
Replace most IsServerMsgId / id <=> 0 with isRegular().
Track isLocal / isHistoryEntry in flags.
Remove toHistoryMessage.
2021-11-07 12:50:13 +04:00
John Preston af93d7cc97 History::createItem returns not_null. 2021-11-06 00:36:16 +04:00
John Preston 7a57174ab1 Register sponsored view only on full message show. 2021-11-03 15:49:48 +04:00
Ilya Fedin 847c01d605 Add Qt 6 support
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
23rd 419f6345b3 Added sponsored messages to HistoryWidget. 2021-10-07 11:09:09 +04:00
John Preston 730412fefe Load albums of last chat messages. 2021-10-04 23:47:33 +04:00
John Preston 21ac2b8f3a Don't use MTP* for reply markup data. 2021-10-04 23:47:30 +04:00
John Preston 8c21fad642 Move preview paint to Dialogs::Ui::MessageView. 2021-10-04 23:45:21 +04:00
John Preston ead695b101 Don't pass wide fake MsgId through MTPMessage. 2021-09-30 15:30:39 +04:00
John Preston 9dfc60026e Add simple forwarding options on bar click. 2021-08-31 19:47:38 +03:00
John Preston 3cd0f9d189 Start non-unique ChatTheme. 2021-08-30 20:32:57 +03:00
John Preston 116a768fde Don't use MTP* for Message flags. 2021-07-28 15:28:17 +03:00
John Preston 5794679277 Don't accept drafts older than last saved.
I hope it finally fixes #4922, partially fixes #10001.

The rest of #10001 like RAM usage / crashes are unrelated to drafts.
2021-03-12 16:58:26 +04:00
John Preston f9f52302bb Ignore accents in contacts list sorting. 2021-02-22 23:42:42 +04:00
23rd 15254599e2 Unified checking for editable message. 2021-01-11 22:46:56 +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 0687cea1ed Fix unpinning all messages. 2020-10-30 18:32:22 +03:00