Commit Graph

109 Commits

Author SHA1 Message Date
John Preston e6ba6050e7 Update button on paid invoices to 'Receipt'. 2021-04-06 18:41:16 +04:00
John Preston 05488022c7 Use ttl_period from service messages as well. 2021-02-22 23:42:41 +04:00
John Preston 6a6e355af4 Handle ttl_period locally. 2021-02-22 23:42:40 +04:00
John Preston 046a3906c4 Destroy messages by ttl_period dates. 2021-02-22 23:42:40 +04:00
John Preston 00504b61cd Allow all messages silent in support mode. 2020-11-19 16:23:57 +03:00
John Preston 4f6f654e34 Check replies_pts before applying.
Fixes #9062.
2020-11-17 18:05:35 +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 22a85016e3 Show rank in anonymous outgoing messages. 2020-10-06 10:23:58 +03:00
John Preston 3a700650be Remove comments info if no info in server data. 2020-10-01 11:34:59 +03:00
John Preston 13ad590a51 Track inbox/outbox comments/replies read state. 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 883c3ecf65 Improve root message layout in Replies section. 2020-09-29 19:03:25 +03:00
John Preston 59abe95754 Show comments unread status. 2020-09-29 19:03:25 +03:00
John Preston 3a51303fb0 Add go to original button to Replies chat. 2020-09-29 19:03:25 +03:00
John Preston 47170da813 Show comments button using 'has_link' flag. 2020-09-29 19:03:24 +03:00
John Preston b8424b1d89 Add read status tracking to comments. 2020-09-29 19:03:24 +03:00
John Preston d42ce87c09 Move discussion group link to three-dot menu. 2020-09-29 19:03:23 +03:00
John Preston 60002555c3 Track comments count correctly. 2020-09-29 19:03:23 +03:00
John Preston fb20be3e6c Open channel comments, not replies. 2020-09-29 19:03:23 +03:00
John Preston 31e1ed216a Add comments button to channel posts. 2020-09-29 19:03:23 +03:00
John Preston 55edb3bdfe Update API scheme to layer 119. Count replies. 2020-09-29 19:03:18 +03:00
John Preston 3878a1b212 Remove some more Auth() calls. 2020-06-23 21:53:38 +04:00
John Preston 099482574e Fix sending stickers from inline bots.
Fixes #8020.
2020-06-16 20:53:44 +04:00
John Preston 1ba052cc13 Highlight timestamps in replies to media. 2019-12-27 13:41:30 +03:00
John Preston b27a2cd34a Use edit_hide flag to hide 'edited' badge. 2019-08-30 18:00:32 +03:00
John Preston d95e54cb1a Check if it is possible to 'Send now.' 2019-08-30 16:17:46 +03:00
John Preston 694f771131 Allow to send scheduled messages instantly. 2019-08-27 19:10:37 +03:00
John Preston e1fe373504 Fix localtime-related slowmode errors. 2019-08-20 12:42:37 +03:00
John Preston 02b65a42f7 Move message client flags to a separate field. 2019-08-09 20:19:23 +01:00
John Preston d7f7a03eb4 Don't refresh large emoji messages when sent. 2019-08-09 11:51:35 +01:00
John Preston d298953653 Add large emoji implementation. 2019-08-09 11:50:49 +01:00
John Preston 7e4c9f98a6 Track all single-emoji messages. 2019-08-09 11:50:49 +01:00
John Preston 3f1a2d0b58 Support emoji in custom admin badges. 2019-07-24 08:02:20 +02:00
John Preston f36e2981ca Display custom admin ranks in messages. 2019-07-24 08:02:20 +02:00
John Preston 22f210ea8e Support sending albums to slowmode groups. 2019-07-24 08:02:20 +02:00
John Preston a64c8c52b4 Correctly display discussion posts sender. 2019-05-27 15:09:56 +02:00
John Preston 6b9675a5b1 Correctly display discussion posts. 2019-05-27 15:09:50 +02:00
John Preston 8aaaef3ff4 Show 'channel' badge for discussed messages. 2019-05-27 15:09:45 +02:00
John Preston 9c1ce702bb Display channel posts in discussion groups. 2019-05-27 15:09:28 +02:00
John Preston c4aac5fa0e Update API scheme to layer 100. 2019-05-27 15:09:06 +02:00
23rd 5d321f7c59 Moved generation of short string for large numbers in one place.
- Added new plural tag "kPluralShortTag".
 - Added support of new plural tag to code generator.
 - Removed FormatViewsCount from history_message.
 - Removed FormatLargeNumber from history_media_poll.
 - Added FormatCountToShort to lang_tag.
2019-05-20 15:44:51 +03:00
John Preston b5be6df5e2 Copy text with expanded links only to external.
Paste valid custom links in message field if copied from messages.
2019-04-08 19:10:06 +04:00
John Preston fb244c00b9 Fix local history clearing. 2019-04-08 13:16:45 +04:00
23rd be2b2cbf7e Refactored ApiWrap::editMedia.
- Slightly refactored checkEntitiesAndViewsUpdate.
 - Slightly refactored HistoryMessage.
2019-04-02 18:14:12 +04:00
23rd 0e4d85a5e5 Added handler for MESSAGE_NOT_MODIFIED error when edit media. 2019-04-02 18:14:12 +04:00
23rd 653fd1bb63 Added initial implementation of cancel of media uploading for editing. 2019-04-02 18:14:12 +04:00
John Preston a34e998c42 Handle fwd_from without a link to the account. 2019-03-24 12:12:42 +04:00
23rd be0b0c1984 Fixed an editing of unsupported messages. 2018-12-26 15:10:56 +04:00
John Preston 74c1db740d Implement polls voting and actions. 2018-12-21 17:09:33 +04:00
John Preston dd81f5d59f Replace base::lambda with shorter term.
base::lambda -> Fn (type alias for std::function).
base::lambda_once -> FnMut (type alias for base::unique_function).
base::lambda_guarded -> crl::guard.
base::lambda_call_type_t -> crl::deduced_call_type.
2018-06-04 18:38:27 +03:00