Commit Graph

1115 Commits

Author SHA1 Message Date
23rd
3aacae2cb2 Added behavior to hide spoilers when switching sections. 2021-12-29 21:22:34 +03:00
John Preston
58c9494c03 Add reactions to replies / comments / pinned section. 2021-12-29 21:22:34 +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
54f5b47585 Fix crash in reactions sending. 2021-12-29 21:22:33 +03:00
23rd
baca36e715 Added chat invites support to sponsored messages. 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
118072db77 Update API scheme on layer 136. 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
ad1476e80f Return reading proper noforwards value. 2021-12-29 21:22:33 +03:00
John Preston
6f8c9f65cf Optimize small emoji image caching and painting. 2021-12-29 21:22:33 +03:00
John Preston
710ef43e41 Update API scheme on layer 136. 2021-12-29 21:22:33 +03:00
John Preston
9c18f7b0e3 Allow choosing allowed reactions in groups / channels. 2021-12-29 21:22:33 +03:00
John Preston
535fd8d523 Display reactions outside bottom info in groups. 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
1af2cfe143 Extract BottomInfo from HistoryView::Message. 2021-12-29 21:22:33 +03:00
John Preston
3a43217301 Show reactions in messages. 2021-12-29 21:22:32 +03:00
John Preston
f5c7b206bb Track message reactions. 2021-12-29 21:22:32 +03:00
John Preston
a1439163ce Update API scheme to layer136. 2021-12-29 21:22:32 +03:00
John Preston
2a0babe5ab Fix file upload cancelling.
Fixes #17408.
2021-12-22 10:34:00 +00:00
John Preston
5e7e7eaa83 FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
John Preston
4b03fd0f23 Version 3.3: Fix build with GCC. 2021-12-08 08:35:03 +04:00
John Preston
d199e16a6e Load cloud image without active view only once. 2021-12-07 10:01:56 +04:00
John Preston
9e5117d336 Respect autodownload settings in reply previews. 2021-12-03 14:59:08 +04:00
John Preston
0fa458737a Fix shared media loading. 2021-12-02 13:54:30 +04:00
John Preston
caaeff32c5 Move global privacy setting down. 2021-12-02 13:36:49 +04:00
John Preston
afcebb136c Don't use MTP for PeerData::isSelf. 2021-12-02 13:36:49 +04:00
23rd
69dc6c98ce Removed unused MTPBool from callbacks on done. 2021-11-30 17:37:39 +04:00
23rd
3647241f71 Removed unused MTP::Error from callbacks on fail. 2021-11-30 17:37:07 +04:00
John Preston
16232c0a4a Open channel profile from message sender click. 2021-11-29 14:54:31 +04:00
John Preston
0f443da758 Track noforwards flag in specific messages. 2021-11-26 18:00:22 +04:00
23rd
b9c64499bd Moved code for api participants to separated file. 2021-11-26 18:00:21 +04:00
23rd
0eee937e6d Moved ChatRestrictionsInfo and ChatAdminRightsInfo to separated file. 2021-11-26 18:00:21 +04:00
John Preston
8d66680a96 Show info about request chat admin incoming message. 2021-11-26 18:00:20 +04:00
John Preston
4f7c728632 Update API scheme on layer 135. 2021-11-26 18:00:20 +04:00
John Preston
aab4dbb7cf Hide export and fast share for noforwards. 2021-11-26 18:00:19 +04:00
John Preston
80fcffcc40 Delete history for specific days in private chats. 2021-11-26 18:00:19 +04:00
John Preston
f13e28a9c5 Use in-class initializers for bitfields. 2021-11-26 18:00:19 +04:00
John Preston
773755d70e Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +04:00
John Preston
1bd74fe478 Choose a channel to send messages as. 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
c849d17667 Remove corner download if noforwards. 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
ebded1b421 Use Photo/DocumentData::isNull instead of date check. 2021-11-18 11:40:15 +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
c0f898b069 Cache sponsored messages for 5 minutes. 2021-11-05 15:28:45 +04:00