Commit Graph

585 Commits

Author SHA1 Message Date
John Preston
de4152496f Add archive settings to context menu. 2023-08-14 22:30:39 +02:00
John Preston
c12297d8cb Implement stealth mode in stories. 2023-08-14 22:30:37 +02:00
John Preston
5575d50277 Update API scheme to layer161. 2023-08-14 22:30:37 +02:00
John Preston
dfe36f638b Correctly apply editions to media-edit-in-progress. 2023-08-10 18:19:00 +03:00
23rd
1364dba015 Added phrase for limit of number of chats that never show in filter. 2023-08-04 08:46:45 +02:00
John Preston
5d234d3103 Update API scheme on layer 160. 2023-07-20 07:20:56 +04:00
John Preston
d7d8847c1d Show stories in chats list userpics. 2023-07-20 07:20:33 +04:00
John Preston
e21c06f67c Support deleting and reporting stories. 2023-07-20 07:20:12 +04:00
John Preston
aba84a6010 Update API scheme on layer 160: Duration. 2023-07-20 07:20:10 +04:00
John Preston
17a5c27658 Update API scheme on layer 160.
Leave plain scheme in api.tl.
2023-07-20 07:20:10 +04:00
John Preston
d28bd36d22 Load and show list of users who viewed a story. 2023-07-20 07:20:10 +04:00
John Preston
04e7ce4408 Update API scheme on layer 160: Replies. 2023-07-20 07:20:09 +04:00
John Preston
89ca38ed29 Start stories viewer with ComposeControls. 2023-07-20 07:20:07 +04:00
John Preston
429a3da3e5 Update API scheme to layer 160. 2023-07-20 07:20:07 +04:00
John Preston
29d0c8c2ec Update API scheme to layer 159. 2023-07-20 07:20:07 +04:00
John Preston
7877463468 Respect peer_types in the switch inline button.
Fixes #26274.
2023-05-24 19:36:58 +04:00
John Preston
65afa2c402 Detach ComposeControls from SessionController. 2023-05-17 15:51:52 +04:00
Klemens Nanni
11906297d8 Explicitly specify QVector element type to fix build with clang13+range-v3+qt6
Same story as 2b383a4 for #24014.
Fixes 4.8.0 build on OpenBSD/amd64 7.3 with clang 13.0.0, range-v3 0.12.0 and Qt 6.5.0.
2023-04-27 09:59:32 +04:00
John Preston
e285b22398 Add "Send when online" to the send button context menu. 2023-04-22 22:26:09 +04:00
John Preston
d0e8802b9d Allow who viewed lists in topic groups. 2023-04-11 20:54:56 +04:00
23rd
896bbb7c56 Added api support to toggle and reorder bot usernames. 2023-04-11 19:17:42 +04:00
23rd
bbeefaed9c Added api support to upload bot photo. 2023-04-11 19:17:42 +04:00
John Preston
2a06182d1a Closed alpha version 4007001001: Fix build. 2023-04-11 19:17:39 +04:00
John Preston
9600cc0ed5 Don't suggest joining forbidden chats by link. 2023-04-11 19:17:39 +04:00
John Preston
959348f8cd Improve error messages for shareable folders. 2023-04-11 19:17:39 +04:00
John Preston
1a1fa5db3e Implement complex filter delete from context menu. 2023-04-11 19:17:39 +04:00
John Preston
1ffbc122e1 Allow select/deselect all in filter link boxes. 2023-04-11 19:17:38 +04:00
John Preston
7ff0659e91 Improve scrolling limits in chat select boxes. 2023-04-11 19:17:38 +04:00
John Preston
9b1c5b1050 Support new limit boxes for shareable folders. 2023-04-11 19:17:38 +04:00
John Preston
77939ae9bd Add more-chats-added bar to cloud folders. 2023-04-11 19:17:38 +04:00
John Preston
312aa4b130 Update API scheme on layer 158. 2023-04-11 19:17:38 +04:00
John Preston
6be2fb9790 Support nice leaving of shareable folder. 2023-04-11 19:17:38 +04:00
John Preston
4444844443 Update API scheme on layer 158. 2023-04-11 19:17:38 +04:00
John Preston
0faadc8fa0 Implement folder link add / join design. 2023-04-11 19:17:38 +04:00
John Preston
86f9875662 Add most of the phrases to the langpack. 2023-04-11 19:17:38 +04:00
John Preston
8a9d13c6e4 Initial add filter / chats / edit filter link. 2023-04-11 19:17:37 +04:00
John Preston
725c22e776 Update API scheme to layer 158. 2023-04-11 19:17:37 +04:00
John Preston
f3e15c7fcd Suggest inviting by link if privacy disallows adding. 2023-03-12 07:25:39 +04:00
John Preston
7682ccf6a7 Update API scheme to layer 155. 2023-03-12 07:25:39 +04:00
John Preston
de9a757e7a Fix webview switch_inline to the same chat. 2023-03-08 16:59:30 +04:00
John Preston
b95ea28e12 Implement dates of who read your message list. 2023-03-07 08:42:29 +03:00
John Preston
4fe568cb82 Implement switch_webview and "web_app_switch_inline_query". 2023-03-07 08:42:29 +03:00
John Preston
34c1bd950e Update API scheme to layer 154. 2023-03-07 08:42:29 +03:00
23rd
6ae15ff264 Fixed indents in some files. 2023-03-02 07:51:17 +03:00
John Preston
856c537335 Show correct state of "Accept calls" checkbox. 2023-03-01 12:53:06 +04:00
John Preston
fec80c0c64 Support text-color-ed emoji in userpic editor. 2023-02-07 20:43:50 +04:00
23rd
e486cf1afa Fixed calculate of discount in premium subscription options. 2023-02-07 11:35:21 +04:00
23rd
8887b2f542 Added ability to set photo for contact from userpic emoji builder. 2023-02-02 22:12:32 +04:00
John Preston
5b063a1807 Update API scheme on layer 152. 2023-02-02 22:12:32 +04:00
23rd
9940ee21d3 Added api support to upload emoji markup of userpic instead of image. 2023-02-02 22:12:32 +04:00
23rd
0578fb421f Added api support of default list of group emoji for userpic builder. 2023-02-02 22:12:32 +04:00
John Preston
f4455663fc Don't add views counter when editing media. 2023-02-02 22:12:32 +04:00
John Preston
a58f9c6ebd Update API scheme on layer 152. 2023-02-02 22:12:32 +04:00
23rd
6ffdc52b55 Added initial api support of default list for emoji profile. 2023-02-02 22:12:32 +04:00
John Preston
826ec75c33 Update API scheme on layer 152. 2023-02-02 22:12:31 +04:00
John Preston
de5bbf2cb9 Allow creating group / channel for the bot. 2023-02-02 22:12:31 +04:00
John Preston
809610817e Initial request peer button implementation. 2023-02-02 22:12:31 +04:00
John Preston
90cb61676a Update API scheme to layer 152. 2023-02-02 22:12:31 +04:00
John Preston
58cedb796e Fix possible crash on empty options from the server. 2023-02-02 10:55:04 +04:00
John Preston
fd47fd4d9e Track shared media index better.
Fixes #25667.
2023-01-09 11:48:33 +04:00
John Preston
eb6c350e72 Fix unread reactions button in chats with users.
Regression was introduced in 6a7f030ee7.

Fixes #25661.
2023-01-03 09:22:46 +04:00
23rd
d424a8b039 Added handler of urls for login. 2022-12-29 11:11:08 +03:00
23rd
613d4932ca Added button for opening custom url to Ui::ConfirmPhoneBox. 2022-12-29 11:11:08 +03:00
Ilya Fedin
66093f0cb5 cTimeFormat/cDateFormat -> QLocale::ShortFormat
This allows to use platform-specific formatting functions
2022-12-28 10:28:12 +04:00
John Preston
627eba1c5a Update API scheme on layer 151. 2022-12-26 14:24:08 +04:00
John Preston
ce40ecc7f9 Show admins in participants_hidden group info. 2022-12-26 14:24:08 +04:00
John Preston
bd490421e8 No "Who Viewed" in case of hidden members. 2022-12-26 14:24:08 +04:00
John Preston
b9b6d4dba1 Show toast after photo suggestion is accepted. 2022-12-26 14:24:08 +04:00
John Preston
9513aaa768 Allow accepting video userpic suggestions. 2022-12-26 14:24:07 +04:00
John Preston
446f0f1653 Fix channels limit info when trying an invite link. 2022-12-26 14:24:07 +04:00
23rd
721b2ebe8a Added initial support of api for fallback photo. 2022-12-26 14:24:07 +04:00
John Preston
1dd83f3d34 Support personal photo edit in EditContactBox. 2022-12-26 14:24:06 +04:00
John Preston
faf6c48f25 Remove ui/special_buttons module. 2022-12-26 14:24:06 +04:00
John Preston
ca0b34dcf0 Update API scheme on layer 151. 2022-12-26 14:24:06 +04:00
John Preston
5bee6310c0 Allow sending media with spoilers. 2022-12-26 14:24:05 +04:00
John Preston
48cf0a4382 Implement suggested profile photo message. 2022-12-26 14:24:05 +04:00
John Preston
5fe9c93cb6 Set / suggest / reset a contact personal photo. 2022-12-26 14:24:05 +04:00
John Preston
1b73b34810 Make HistoryItem a final class. 2022-12-26 14:24:04 +04:00
23rd
66926ba25e Fixed scrolling to end when media is replaced. 2022-12-09 11:54:37 +03:00
John Preston
cfddca8f58 Fix possible crashes in toastParent expiring. 2022-12-07 13:07:36 +04:00
John Preston
cb653df0f6 Support adaptive forum userpic rounding radius. 2022-12-05 16:18:10 +04:00
23rd
b2e9c4ab75 Moved Ui::EmptyUserpic to td_ui. 2022-12-04 03:46:44 +03:00
23rd
5df0b08a42 Added support of second colors for empty userpic backgrounds. 2022-12-04 03:46:44 +03:00
John Preston
a4e4681835 Add jump-to-topic panel in View as Messages. 2022-12-02 18:20:22 +04:00
23rd
4fabb3f2a2 Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03:00
John Preston
eaed91263e Simplify HistoryHider, remove most of uses. 2022-11-30 16:13:31 +04:00
John Preston
5d8a2bc7b7 Implement simple sub-column for topics list. 2022-11-30 13:03:42 +04:00
23rd
97fa92de0b Added api support for global TTL settings. 2022-11-29 17:41:20 +03:00
John Preston
d89573bab5 Update API scheme to layer 150. 2022-11-29 18:30:38 +04:00
23rd
2acedca6b7 Replaced some qstr with u""_q literal. 2022-11-29 14:12:50 +03:00
John Preston
8a288476b8 Implement pinned topics reordering. 2022-11-22 00:26:48 +00:00
John Preston
c7741cb62a Apply short topic info from channelMessages. 2022-11-22 00:26:48 +00:00
John Preston
983b6af0b4 Update API scheme to layer 149. 2022-11-22 00:26:48 +00:00
John Preston
b514496546 Simplify SendProgressManager::done prototype. 2022-11-11 11:44:03 +04:00
John Preston
9d4840c0de Respect window active state on mark as read. 2022-11-02 20:13:29 +04:00
John Preston
ff352d7647 Fix password request box closing in bot button callback. 2022-11-02 20:13:29 +04:00
John Preston
34a2c5c8ce Display topic name in chats list. 2022-11-02 16:39:13 +04:00
John Preston
57dc0c632e Open forum by invite link. 2022-11-01 19:25:45 +04:00
John Preston
15f72ca6c1 Fix contact sharing to topics. 2022-11-01 19:25:44 +04:00
John Preston
1ac051a812 Implement forwarding to topics. 2022-11-01 19:25:44 +04:00
John Preston
aa5f9467f2 Support attach webview bots in topics. 2022-11-01 19:25:43 +04:00
John Preston
88d1a502a5 Implement search in topics / forum messages. 2022-11-01 19:25:42 +04:00
23rd
579b20fff7 Added initial ability to transcribe video messages. 2022-11-01 19:25:42 +04:00
John Preston
ed895ace66 Track dialog row offline status by timer.
Fixes #6410.
2022-11-01 19:25:41 +04:00
John Preston
0cba9e4a22 Support default forum topic icons. 2022-11-01 19:25:41 +04:00
John Preston
4910a60499 Track mentions / reactions together with unread. 2022-11-01 19:25:40 +04:00
John Preston
5356f6cd2c Reload topics on channelDifferenceTooLong. 2022-11-01 19:25:40 +04:00
John Preston
7cdf20a7c5 Allow topic deletion. 2022-11-01 19:25:40 +04:00
John Preston
adaa1d0c55 Support pinned topics in forums. 2022-11-01 19:25:40 +04:00
23rd
a4856e4436 Added handling of error for too much number of activated usernames. 2022-11-01 19:25:40 +04:00
23rd
ad70942d0e Moved usernames data management to separated class. 2022-11-01 19:25:39 +04:00
23rd
17623640b3 Slightly improved appearing of usernames list. 2022-11-01 19:25:39 +04:00
23rd
51cead1445 Added initial implementation of api for usernames. 2022-11-01 19:25:38 +04:00
23rd
5751d29c47 Removed username from public data members of UserData. 2022-11-01 19:25:38 +04:00
John Preston
89d0a71591 Update API scheme on layer 148: Drafts in topics. 2022-11-01 19:25:38 +04:00
John Preston
16e189a2ce Update API scheme on layer 148: Usernames. 2022-11-01 19:25:37 +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
3999bca823 Support unread mentions / reactions in topics. 2022-11-01 19:25:36 +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
9348039313 Track unread posts in forums inside RepliesList-s. 2022-11-01 19:25:36 +04:00
John Preston
3722e55b67 Support topic on-the-fly creation. 2022-11-01 19:25:35 +04:00
John Preston
d15173e09d Update API scheme on layer 148. 2022-11-01 19:25:35 +04:00
John Preston
9f652b0d3f Unify message sending, track forum topic icons. 2022-11-01 19:25:34 +04:00
Ilya Fedin
7b5781b845 Use default-constructed QLocale for date/time/whatever else formatting
Qt 6 chenged the QDateTime API to use QLocale::c() rather than QLocale::system(), using default-constructed QLocale will make this consistent and overradable application-wide

Other formating use-cases as QLocale::decimalPoint use default-constructed QLocale now, too
2022-10-17 08:33:22 +04:00
John Preston
749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
John Preston
08321b8d8b Fix sending custom emoji based on Dice-type game emoji. 2022-09-14 20:41:24 +04:00
John Preston
40bdcd7ebc Short poll extended media. 2022-09-12 18:18:31 +04:00
John Preston
d2234d88b6 Update extended media, hide inline keyboard. 2022-09-12 16:10:56 +04:00
John Preston
0a3077b9a5 Update API scheme on layer 145. 2022-09-02 21:14:33 +04:00
John Preston
923e725e18 Request default and recent emoji statuses. 2022-09-02 21:14:33 +04:00
23rd
6f3d19914d Unified parsing of MTP gift and subscription options in separate file. 2022-09-02 21:14:32 +04:00
John Preston
668a3308be Support custom emoji reactions in WhoReacted. 2022-09-02 21:14:31 +04:00
John Preston
ba83836922 Display custom emoji reactions under messages. 2022-09-02 21:14:31 +04:00
John Preston
8a6b3027f5 Support multiple reactions from one user. 2022-09-02 21:14:31 +04:00
John Preston
31db1804c8 Request top and recent reactions. 2022-09-02 21:14:31 +04:00
John Preston
f8c962712b Update API scheme on layer 145. 2022-09-02 21:14:31 +04:00
John Preston
f658cb7e99 Update API scheme on layer 145. 2022-09-02 21:14:30 +04:00
John Preston
1e2e007d38 Show custom emoji in private chat reactions. 2022-09-02 21:14:29 +04:00
John Preston
60cc232884 Update API scheme on layer 145. 2022-09-02 21:14:29 +04:00
John Preston
77772caabb Update API scheme on layer 145. 2022-09-02 21:14:29 +04:00
John Preston
c126a1e56e Simplify CustomEmojiId. 2022-08-15 13:17:24 +03:00
John Preston
fede1ff173 Simplify stickers inner API. 2022-08-15 11:34:22 +03:00
John Preston
3698396677 Remove MTP from Polls::create interface. 2022-08-11 09:06:43 +03:00
John Preston
e7a3c5367a Make MTP* optional in ConfirmInviteBox. 2022-08-11 09:02:41 +03:00
John Preston
8bc807dc40 Set name / phone texts on-demand. 2022-08-09 14:12:19 +03:00
John Preston
b7cc2e9894 Don't pass redundant MTPUpdates arguments. 2022-08-05 13:37:41 +03:00
John Preston
9b92700c24 Add additional cloud premium stickers to fake-set. 2022-08-04 17:48:36 +03:00
John Preston
4915ea8ad3 Add convenient appConfig().get<int>(..). 2022-08-02 13:20:38 +03:00