Commit graph

278 commits

Author SHA1 Message Date
John Preston
15719b73b4 Fix updating unread message reactions. 2022-01-28 19:10:07 +03:00
John Preston
a5afeebc0c Show reaction notification by unread status. 2022-01-28 19:10:07 +03:00
John Preston
9903266722 Index new unread reactions in history. 2022-01-28 19:10:07 +03:00
John Preston
8f33d5903d Display unread reactions badge in chats list. 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
581b84afe0 Update API scheme on layer 138. 2022-01-28 19:10:07 +03:00
John Preston
4996d90782 Fix first my reaction userpic in groups. 2022-01-17 21:29:28 +03:00
John Preston
df044dbd83 Show local notifications about contact reactions. 2022-01-14 21:55:48 +03:00
John Preston
f3e84de5fb Implement recent reaction userpics in groups. 2022-01-14 21:55:48 +03:00
23rd
b55ed7214a Removed text commands from history item components. 2022-01-12 11:54:24 +03:00
John Preston
9df229a230 Add pinned message icon.
Regression was introduced in 1af2cfe143.

Fixes #17489.
2022-01-03 18:15:36 +03:00
John Preston
611be90880 Rewrite sponsored to use fake sender names. 2021-12-31 16:07:36 +03:00
John Preston
4cbfcc8dbc Disable reaction button on Call messages. 2021-12-30 14:33:11 +03:00
John Preston
a8bc7baa70 Update all messages in case of chat reactions toggle. 2021-12-29 21:22:34 +03:00
John Preston
ec16ca7df7 Poll reactions for visible messages. 2021-12-29 21:22:34 +03:00
John Preston
aafc24008b Apply reactions from message edit updates. 2021-12-29 21:22:34 +03:00
23rd
c40bcdc446 Added utility to correctly cut text with commands. 2021-12-29 21:22:34 +03:00
John Preston
4228557722 Improve reactions position and colors. 2021-12-29 21:22:33 +03:00
23rd
1cca4d71bd Provided spoiler info to preview text. 2021-12-29 21:22:33 +03:00
23rd
a027a02130 Provided spoiler info to notification text. 2021-12-29 21:22:33 +03:00
23rd
f2c7237d5f Moved item preview structs to separated file. 2021-12-29 21:22:33 +03:00
John Preston
fe468ce7e9 Respect can_see_list flag in reactions. 2021-12-29 21:22:33 +03:00
John Preston
2991c3c17f Toggle reactions from the list under the message. 2021-12-29 21:22:33 +03:00
John Preston
b1668afdf1 Use available reactions list from the server. 2021-12-29 21:22:33 +03:00
John Preston
b5d80a3c15 Improve BottomInfo layout. 2021-12-29 21:22:33 +03:00
John Preston
1af2cfe143 Extract BottomInfo from HistoryView::Message. 2021-12-29 21:22:33 +03:00
John Preston
f5c7b206bb Track message reactions. 2021-12-29 21:22:32 +03:00
John Preston
5e7e7eaa83 FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
John Preston
03775e0cc5 Allow to ban channels in groups from moderate actions. 2021-11-29 15:24:30 +04:00
John Preston
0f443da758 Track noforwards flag in specific messages. 2021-11-26 18:00:22 +04:00
John Preston
d1b9785d31 Allow deleting all from a channel to a group. 2021-11-26 18:00:20 +04:00
John Preston
a7c9a1ab34 Fix chats list forwarded messages sender. 2021-11-26 18:00:20 +04:00
John Preston
9bc9547b1c Revert "Fix crash in imported messages in search."
This reverts commit 65d96c0364.
2021-11-26 18:00:20 +04:00
John Preston
2f48fe920e Fixed edit of scheduled messages. 2021-11-13 13:44:56 +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
5c4b68d632 Fixed possible crash on sponsored messages. 2021-11-05 08:27:33 +03:00
John Preston
65d96c0364 Fix crash in imported messages in search. 2021-11-01 13:11:34 +04:00
John Preston
2ca5f26546 Don't show "You:" in private chats. 2021-10-29 18:31:07 +04:00
John Preston
d532b65d1c Don't use MTP* for replies data. 2021-10-07 22:57:44 +04:00
23rd
eda5cd47ad Added manager of sponsored messages. 2021-10-07 11:09:08 +04:00
John Preston
992d636680 Generate album mini previews with up-to-three images. 2021-10-04 23:47:33 +04:00
John Preston
d5f935b73d Put mini-previews after sender name. 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
792b9090a7 Generate mini-previews for photos and files. 2021-10-04 23:45:21 +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
2f5bed2899 Skip "contact joined" toast if disabled in Settings.
The chats still appear (they are server-side), but skip the toast.
2021-09-23 17:37:29 +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
23rd
6f80811ecd Fixed applying server messages as scheduled.
Fixed #16726 and many other problems.
2021-08-10 15:46:18 +03:00