Commit Graph

320 Commits

Author SHA1 Message Date
John Preston 894e7c5828 Fix imported messages without a sender name. 2021-12-02 13:36:49 +04:00
23rd 3647241f71 Removed unused MTP::Error from callbacks on fail. 2021-11-30 17:37:07 +04:00
John Preston 0f443da758 Track noforwards flag in specific messages. 2021-11-26 18:00:22 +04:00
John Preston 773755d70e Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +04:00
John Preston 9be47f0870 Allow restricting forwards in groups / channels. 2021-11-26 18:00:18 +04:00
John Preston 431e3035af Update API scheme to layer 135. 2021-11-26 18:00:18 +04:00
John Preston f2e4a5a35a Highlight YouTube video timestamps as external links. 2021-11-18 16:03:12 +04:00
John Preston 2f48fe920e Fixed edit of scheduled messages. 2021-11-13 13:44:56 +04:00
John Preston 6eaeb306d6 Add a RequestDependentMessageData method. 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
23rd 80461bd9fe Moved ConfirmBox to Ui namespace. 2021-10-19 06:34:27 +03:00
23rd 6148edbc7d Moved ConfirmBox to td_ui. 2021-10-19 06:34:27 +03:00
23rd 816f422e21 Removed MTP* from applying message edition.
Fixed #17073.
2021-10-08 10:39:36 +04:00
John Preston d532b65d1c Don't use MTP* for replies data. 2021-10-07 22:57:44 +04:00
John Preston bef35b9bc3 Don't use MTP* in call and invoice media data. 2021-10-07 18:22:28 +04:00
23rd b3f73bb6a9 Added badge for sponsored messages. 2021-10-07 11:09:08 +04:00
John Preston 21ac2b8f3a Don't use MTP* for reply markup data. 2021-10-04 23:47:30 +04:00
John Preston ead695b101 Don't pass wide fake MsgId through MTPMessage. 2021-09-30 15:30:39 +04:00
John Preston 1e660fc2a2 Allocate 64 bits for message ids. 2021-09-30 13:49:37 +04:00
John Preston 8069fdd873 Use base/random.h instead of openssl::RandomValue. 2021-09-15 13:42:22 +03:00
23rd 900a7d0b2b Appended references to const auto types in loop to prevent copying.
Suggested by Apple Clang.
2021-09-09 16:32:04 +03:00
John Preston a6c98f4bb4 Update API scheme to layer 133. 2021-09-07 23:41:07 +03:00
John Preston c39024c7fd Track and display unread count in discussions. 2021-08-30 20:32:58 +03:00
John Preston 4dd58b79e9 Fix forward of a bot message with a game from a group. 2021-08-18 16:43:22 +03:00
John Preston c5c94276c2 Allow editing caption of forwarded audio file.
Fixes https://bugs.telegram.org/c/3025
2021-08-18 16:29:05 +03:00
John Preston c79cd0b692 Use Images::Read instead of App::readImage. 2021-08-11 18:55:08 +03:00
John Preston 116a768fde Don't use MTP* for Message flags. 2021-07-28 15:28:17 +03:00
John Preston 22e77bf3af Don't use MTP* for ReplyMarkup flags. 2021-07-28 15:16:23 +03:00
John Preston a74228acea Don't use MTP* for ChannelData flags. 2021-07-08 16:11:09 +03:00
John Preston 2ffda9f240 Don't use MTP* for ChatAdminRight / ChatRestriction. 2021-07-08 13:34:06 +03:00
John Preston 1342077dcb Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
John Preston e6ba6050e7 Update button on paid invoices to 'Receipt'. 2021-04-06 18:41:16 +04:00
John Preston 320adcd389 Fix showing comments from the beginning. 2021-04-06 18:41:15 +04:00
John Preston 68b0a85369 Rename RPCError to MTP::Error. 2021-03-12 16:58:26 +04:00
John Preston 6786d44b69 Start voice chat link sharing. 2021-03-12 16:58:26 +04:00
23rd 658671089e Added timestamp highlighting in voice captions. 2021-03-05 13:36:39 +03:00
John Preston 975fcb0c1a Show channel post authors in Saved Messages. 2021-02-23 19:12:22 +04:00
John Preston 47d2ecf629 Fix a possible crash in Clear History. 2021-02-22 23:42:42 +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 19455d44db Add support for imported messages. 2021-01-25 16:50:58 +04:00
23rd d4bbbdb65c Replaced rand_value util function with openssl::RandomValue. 2021-01-24 10:41:10 +03: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 cf6ca3b1ac Handle bot command clicks in Replies / Scheduled. 2020-11-17 12:56:51 +03:00
John Preston fc92e3fadd Add pinned messages section. 2020-10-30 18:32:20 +03:00
John Preston ae298818a8 Implement message bar with animations. 2020-10-30 18:32:17 +03:00
23rd 52cca98144 Fixed replies button display in section of scheduled messages. 2020-10-23 13:32:43 +03:00
John Preston cd506dfff5 Fix reply_to_top_id in local sent stickers.
Fixes #8758.
2020-10-06 14:01:19 +03:00