Commit Graph

2908 Commits

Author SHA1 Message Date
John Preston ce17904dcc Improve topic creation, fix glitches. 2022-11-01 19:25:41 +04:00
John Preston 4074a558e7 Get rid of Ui::FlatInput class.
Fixes #16172.
2022-11-01 19:25:41 +04:00
John Preston f9173ea849 Improve top bar design for forum / topic. 2022-11-01 19:25:41 +04:00
John Preston 3a967bbbfe Ignore unread counts in non-opened topics. 2022-11-01 19:25:41 +04:00
John Preston 7aea54ad8f Fix crash in topics admin log. 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 08ba277327 Track forum unread state by topics inside. 2022-11-01 19:25:40 +04:00
John Preston 7cdf20a7c5 Allow topic deletion. 2022-11-01 19:25:40 +04:00
John Preston c86496add1 Fix document thumbnails on Retina screens. 2022-11-01 19:25:40 +04:00
John Preston ad2f9438a2 Support topic closing. 2022-11-01 19:25:40 +04:00
John Preston fe41fbd7e9 Support topics in Recent Actions. 2022-11-01 19:25:40 +04:00
John Preston df5602d203 Support topic icon display in topic profile. 2022-11-01 19:25:40 +04:00
23rd 9ddbc75638 Added api flag support of userpic display for sponsored messages. 2022-11-01 19:25:40 +04:00
23rd dc8b693f1d Added context menu to bar of pinned messages with bot button. 2022-11-01 19:25:40 +04:00
23rd c9390dc02a Added draft for usernames in admin log. 2022-11-01 19:25:40 +04:00
23rd c8ae7c7402 Added ability to download multiple files from context menu. 2022-11-01 19:25:39 +04:00
23rd 00df4625e2 Added support of primary username to FieldAutocomplete. 2022-11-01 19:25:39 +04:00
23rd 4824b26afd Added tooltip with forwards count to views info for channel messages. 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
23rd 38f5cda800 Added display of full filenames for documents in tooltips. 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 ead427793b Handle forum / topic links. 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 6997e165c6 Forum three-dot menu, except search. 2022-11-01 19:25:37 +04:00
John Preston b68ffcd75d Update topic mute state on history mute changes. 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 9fccdf21cc Remove General meta-forum-topic. 2022-11-01 19:25:37 +04:00
John Preston 92a4b27e65 Support per-topic notification settings. 2022-11-01 19:25:37 +04:00
John Preston 24843e3acd Rounded square userpics for forums. 2022-11-01 19:25:37 +04:00
John Preston 6695eda1be Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
John Preston 58b8eb8e96 Implement per-topic shared media. 2022-11-01 19:25:37 +04:00
John Preston eec4b72d9a Implement correct jump to message / unread / bottom. 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 f258b054e8 Request last topic message if it becomes unknown. 2022-11-01 19:25:36 +04:00
John Preston 032e6c57e9 Request full album for last topic message. 2022-11-01 19:25:36 +04:00
John Preston 2c50f7b18c Implement nice topic icon create / edit box. 2022-11-01 19:25:36 +04:00
John Preston ae3496d6a4 Update API scheme on layer 148: Topic icons. 2022-11-01 19:25:36 +04:00
John Preston f3c664859d Don't show root pinned bar in topic messages list. 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 b77756ce12 Highlight active topic in chats list. 2022-11-01 19:25:35 +04:00
John Preston 1e8dfb7315 Partially support correct rounding near unwrapped media. 2022-11-01 19:25:35 +04:00
John Preston f167cdad6f Fix crash in quiz explanation with spoilers. 2022-11-01 19:25:35 +04:00
John Preston 001c46f68a Support new rounding in poll bottom button. 2022-11-01 19:25:35 +04:00
John Preston 09ab83836f Support new rounding for comments button. 2022-11-01 19:25:35 +04:00
John Preston e5f2d83548 Support new rounding in bot inline keyboards. 2022-11-01 19:25:35 +04:00
John Preston 9cab06e17d Support new rounding for albums. 2022-11-01 19:25:35 +04:00
John Preston 8268e9f872 Support new rounding for GIFs / videos. 2022-11-01 19:25:35 +04:00
John Preston b2302d35fe Implement correct rounding of shared locations. 2022-11-01 19:25:35 +04:00
John Preston abdd126dcf Round correctly distinct photos and extended media. 2022-11-01 19:25:35 +04:00
John Preston f3662f4873 Support correct rounding of file thumbnails. 2022-11-01 19:25:34 +04:00
John Preston dd52c53ec0 Allow more file attach layout customization. 2022-11-01 19:25:34 +04:00
John Preston b13471672d Move some chat styles from basic.style to chat.style. 2022-11-01 19:25:34 +04:00
John Preston ba2f92906b Implement new bubble rounding. 2022-11-01 19:25:34 +04:00
John Preston 405d8c327d Support different row styles in chats list. 2022-11-01 19:25:34 +04:00
John Preston 1401b19994 Add PaintContext for Dialogs::Ui::RowPainter. 2022-11-01 19:25:34 +04:00
John Preston 4724ef91f6 Improve topic by message resolving. 2022-11-01 19:25:34 +04:00
John Preston d7fdd80f55 Fix jumping in topics list on message send. 2022-11-01 19:25:34 +04:00
John Preston 9f652b0d3f Unify message sending, track forum topic icons. 2022-11-01 19:25:34 +04:00
John Preston 3b3792ef75 Allow editing topic title and icon. 2022-11-01 19:25:33 +04:00
John Preston c90f879c96 Update API scheme on layer 148. 2022-11-01 19:25:33 +04:00
John Preston 73e56b0340 Support default General topic in forums. 2022-11-01 19:25:32 +04:00
John Preston eaf679916a Create / move forum topics on new messages. 2022-11-01 19:25:32 +04:00
John Preston 388fe6adfb Allow enabling forum, creating topics. 2022-11-01 19:25:32 +04:00
John Preston c88140e256 Update API scheme to layer 148, start forums. 2022-11-01 19:25:32 +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 0fbb2e77fe Fix rare crash in message list context menu. 2022-09-30 18:50:43 +04:00
23rd acb092f9f2 Fixed stuck of history-down button after sending message. 2022-09-28 12:31:16 +03:00
23rd 9cd194e60e Removed ability to copy links in channels with restricted content. 2022-09-28 12:31:16 +03:00
John Preston 1ee9122660 Fix text selection in recent actions. 2022-09-25 18:22:01 +04:00
John Preston 6cb01998cc Fix crash in recent actions with spoilers. 2022-09-25 18:21:59 +04:00
John Preston d4a2c4a151 Fix crash in caption spoiler opening. 2022-09-23 23:22:08 +04:00
John Preston 8fc35e45e4 Beta version 4.2.1: Fix build with GCC. 2022-09-22 22:44:28 +04:00
John Preston ffb024a5f7 Move Ui::Text::String to HistoryView::Element. 2022-09-22 11:07:48 +04:00
John Preston a7c29991db Hide toggle silent send in channels on msg edit. 2022-09-19 18:49:46 +04:00
John Preston 476a864be2 Improve cropping for videos a bit.
Partially fixes #25061 for videos as well.
2022-09-19 18:05:03 +04:00
John Preston fc3810fd7f Improve scaling / expanding for photos.
Fixes #25061.
2022-09-19 17:44:59 +04:00
John Preston 39294a7fe1 Use touch handling from HistoryInner in ListWidget.
Fixes #24880.
2022-09-19 11:16:09 +04:00
John Preston 8bd0ff7925 Opimize spoiler revealing. 2022-09-18 16:52:31 +04:00
John Preston 4f948699c0 Correct spoiler selections. 2022-09-18 16:52:31 +04:00
John Preston 749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
John Preston fba683be8e Fix custom status remove on chat reopen. 2022-09-16 10:42:25 +04:00
John Preston 9923cc9b31 Beta version 4.1.2: Fix build with Xcode. 2022-09-14 23:15:00 +04:00
23rd 557a2e400e Fixed muting of peer forever. 2022-09-14 23:10:30 +04:00
John Preston bc340d75c4 Insert / Copy emoji from pack preview. 2022-09-14 14:45:23 +04:00
John Preston 02daa2a04b Add new reaction menu to channel comments. 2022-09-13 07:53:20 +04:00
John Preston 1363faddbf Add "Reaction button in messages" setting. 2022-09-13 07:44:22 +04:00
John Preston 40bdcd7ebc Short poll extended media. 2022-09-12 18:18:31 +04:00
John Preston 379736a7d1 Show extended preview inline keyboard button. 2022-09-12 16:40:19 +04:00
John Preston d2234d88b6 Update extended media, hide inline keyboard. 2022-09-12 16:10:56 +04:00
John Preston 7c8d3452b5 Fix reaction icons in Who Reacted. 2022-09-12 09:38:18 +04:00
John Preston e2bca0a7ff Fix media with caption in a narrow window. 2022-09-12 09:35:28 +04:00
John Preston 2e8a03dfd1 Correctly round spoiler animation in ExtendedMedia. 2022-09-12 09:06:26 +04:00
John Preston a919978a37 Use spoiler animation for ExtendedMedia. 2022-09-12 09:06:26 +04:00
John Preston 20b5138e00 Initial implementation of ExtendedMedia. 2022-09-12 09:06:26 +04:00
John Preston 03e90840de Closed alpha version 4.1.1.1: Fix build with GCC. 2022-09-10 11:07:08 +04:00
John Preston 3129d9f0df Add a distinct "N seconds" key for the slowmode phrase. 2022-09-10 08:19:37 +04:00
John Preston d511f2bb90 Fix via @bot after name for premium users. 2022-09-09 09:35:36 +04:00
John Preston b0203af398 Fix no-bubble comments button resize. 2022-09-08 09:38:52 +04:00
John Preston 5cc6275fc3 Fly + effects when choosing an emoji status. 2022-09-07 12:52:34 +04:00
John Preston d4810713cb Fly-animate reactions from the new context menu. 2022-09-06 17:08:20 +04:00
John Preston f0955f2021 Add emoji-status disclaimer for unknown peers. 2022-09-06 11:20:55 +04:00
John Preston d6ba092697 Make GIFs and videos with captions larger. 2022-09-05 19:03:52 +04:00
John Preston 00ee31ce2d Make photos with captions wider. 2022-09-04 08:18:50 +04:00
John Preston 85acf051c1 Try to fix build with GCC. 2022-09-03 06:51:02 +04:00
23rd 49773dde72 Attempted to fix rare non-elided text in bar of pinned bot messages. 2022-09-02 21:14:34 +04:00
23rd fa6b4f9b52 Slightly improved style of Premium Settings. 2022-09-02 21:14:34 +04:00
John Preston c13221a984 Menu reactions selector without enabled compositing. 2022-09-02 21:14:34 +04:00
John Preston a256eb4bc8 Add mini-copies animation for custom reactions. 2022-09-02 21:14:34 +04:00
John Preston 7d77e8a203 Play generic animations for custom reactions. 2022-09-02 21:14:34 +04:00
John Preston 7658d1da3c Fix unsetting reaction in private chats. 2022-09-02 21:14:33 +04:00
23rd e34b61d56b Moved out HistoryView::StickerPlayer implementations to separate file. 2022-09-02 21:14:33 +04:00
John Preston 742b819c7e Always show reaction userpics in private chats. 2022-09-02 21:14:33 +04:00
John Preston 2618ee3d75 Paint two-loops of custom emoji statuses. 2022-09-02 21:14:33 +04:00
John Preston 2d07539892 Support colored emoji statuses. 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
John Preston ebf6cea2f5 Correctly show premium promo for custom reactions. 2022-09-02 21:14:32 +04:00
John Preston a3c110dafa Correctly show flying custom reactions. 2022-09-02 21:14:32 +04:00
John Preston ad0c9ebb79 Fly-animate custom reactions. 2022-09-02 21:14:32 +04:00
John Preston d5008fe7ac Sync custom emoji from strip to recent in the panel. 2022-09-02 21:14:32 +04:00
John Preston 7c3814cdcd Fix recent userpics display in reactions. 2022-09-02 21:14:32 +04:00
John Preston ed3f246510 Use FrameGenerator-based AnimatedIcon for reactions. 2022-09-02 21:14:32 +04:00
John Preston d9a6d5f508 Update API scheme on layer 145. 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 14f937cb02 Show only some reactions in the bottom info.
Only in private chats with no premium users.
Only if nobody sent more than one reaction while was premium.
Only if nobody sent a custom emoji reaction while was premium.
2022-09-02 21:14:31 +04:00
John Preston 733cad798b Load emoji for reactions panel. 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 a202174d12 Disable expand button in the inline reactions selector for now. 2022-09-02 21:14:31 +04:00
John Preston c655f78780 Fix build with Xcode. 2022-09-02 21:14:30 +04:00
John Preston 73d8530c13 Fix jumping to premium promo from reactions panel. 2022-09-02 21:14:30 +04:00
John Preston 610c46e26f Make a nice selector for only-recent set. 2022-09-02 21:14:30 +04:00
John Preston 96805b62b2 Seamless switch from strip icons to custom emoji. 2022-09-02 21:14:30 +04:00
John Preston 4762c7a4fd Fix layout with a single available reaction. 2022-09-02 21:14:30 +04:00
John Preston 0277d765bb Nice reactions panel expanding. 2022-09-02 21:14:30 +04:00
John Preston 20d4d00634 Implement expanding of list / categories. 2022-09-02 21:14:30 +04:00
John Preston c5fa4aae62 Support reaction dropdown based on EmojiListWidget. 2022-09-02 21:14:30 +04:00
John Preston f72092a261 Update API scheme on layer 145. 2022-09-02 21:14:30 +04:00
John Preston 33b266175d Allow creating EmojiListWidget without SessionController. 2022-09-02 21:14:30 +04:00
John Preston c9a98ae723 Expand reaction selection panel. 2022-09-02 21:14:30 +04:00
John Preston bd42c23999 Implement reactions selector above the menu. 2022-09-02 21:14:30 +04:00
John Preston fa26afaf9a Rename several HistoryView::Reactions modules. 2022-09-02 21:14:30 +04:00
John Preston b648387e96 Fixed emoji packs menu item. 2022-09-02 21:14:29 +04:00
John Preston 8d2ebdbb99 Animate reactions strip appearance. 2022-09-02 21:14:29 +04:00
John Preston a0d5456a4d PoC content outside of PopupMenu. 2022-09-02 21:14:29 +04:00
23rd ef543d040e Replaced separate click handlers for each spoiler entry with single one. 2022-09-02 21:14:29 +04:00
John Preston 8a1118d9bb Show how much message limit is exceeded when editing. 2022-09-02 21:14:29 +04:00
John Preston 1e2e007d38 Show custom emoji in private chat reactions. 2022-09-02 21:14:29 +04:00
John Preston 09124f6424 Implement PoC custom reaction selection. 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 165d3143de Allow emoji status edit from self profile. 2022-09-02 21:14:28 +04:00
John Preston 21fd381778 Show emoji status in chats list / top bar. 2022-09-02 21:14:28 +04:00
Ilya Fedin e20840b4d4 Use KUrlMimeData for clipboard xdg-desktop-portal integration 2022-08-30 20:25:10 +04:00
John Preston 888306c017 Fix custom emoji in reply bar in comments / scheduled. 2022-08-15 19:01:40 +03:00
John Preston 6ff30c643a Fix user links in Recent Actions. 2022-08-15 18:54:08 +03:00
John Preston 4933fbb74a Show out message timestamp always for > 3 custom emoji. 2022-08-15 17:54:45 +03:00
John Preston 51010e864c Fix premium sticker tooltip auto-show in comments. 2022-08-15 16:39:56 +03:00
John Preston 24ee944689 Improve reply info layout in narrow mode.
Fixes #24935.
2022-08-15 16:21:08 +03:00
John Preston f0f7318978 Better saved credentials processing. 2022-08-15 12:20:17 +03:00
John Preston 94e4a8981f Specify gift box sticker explicitly. 2022-08-15 10:42:06 +03:00
John Preston 8bc807dc40 Set name / phone texts on-demand. 2022-08-09 14:12:19 +03:00
John Preston 05edf00d40 Fix unwrapped media top skip. 2022-08-08 19:12:18 +03:00
John Preston 90d2021f4d Jump to keyboard top on FullMsgId change. 2022-08-08 18:28:36 +03:00
John Preston 3a3341fef8 Fix RTMP livestream starting while in another call.
Fixes #24862.
2022-08-08 16:39:44 +03:00
John Preston 068eb3fcd1 Fix a click on "via @bot" of a sticker.
Fixes #24888.
2022-08-08 16:02:09 +03:00
John Preston 75ee74ff1f Fix paddings in unwrapped emoji messages. 2022-08-08 15:41:33 +03:00
John Preston 9509c88ef9 Fix possible crash in pinned messages destruction. 2022-08-08 14:32:16 +03:00
John Preston 819925fc72 Don't show premium effects on message previews. 2022-08-08 13:37:31 +03:00
John Preston cf4b869c27 Don't always show timestamps on large custom-emoji-only messages. 2022-08-08 13:37:15 +03:00
John Preston 5c43a541d7 Show emoji promo only on Premium Emoji toast. 2022-08-08 13:25:22 +03:00
John Preston b7cc2e9894 Don't pass redundant MTPUpdates arguments. 2022-08-05 13:37:41 +03:00
John Preston d891a5344a Beta version 4.0.4: Fix build with GCC. 2022-08-05 10:12:48 +03:00
John Preston 57b0ec0d7e Fix forwarded message with custom emoji preview. 2022-08-04 20:41:45 +03:00
John Preston 2f5038a792 Improve webview on macOS. 2022-08-04 19:33:56 +03:00
John Preston 4bdac53be2 Fix toast hiding on jump to Saved Messages. 2022-08-04 17:06:02 +03:00
John Preston e438cb57bc Show, send and receive interactions in single custom emoji. 2022-08-04 16:10:36 +03:00
John Preston 543bfab24a Resolve custom emoji in OnlyCustomEmoji media. 2022-08-04 14:31:15 +03:00
John Preston f8e22210e7 Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00
John Preston 7a88f9434e Support OnlyCustomEmoji unwrapped messages. 2022-08-03 20:43:26 +03:00
John Preston f4b80d8714 Show premium emoji toast / send to Saved Messages. 2022-08-02 20:59:50 +03:00
John Preston 59903b0b1c Suggest animated emoji in Saved Messages. 2022-08-02 19:23:06 +03:00
John Preston b42f2784ab Allow sending premium emoji to Saved Messages. 2022-08-02 13:20:38 +03:00
John Preston 8bb3cd7e65 Push click handler context to Api::ActivateBotCommand. 2022-07-28 20:03:38 +03:00
John Preston 7a61693034 Limit attached emoji phrase to two lines. 2022-07-28 18:36:48 +03:00
23rd d57e752ae9 Added ability to open context menu from inner media in service messages. 2022-07-28 02:49:07 +03:00
John Preston 3c19d7b302 Show shared link long URL tooltips. 2022-07-27 14:24:34 +03:00
John Preston c8aacbdb9f Allow viewing emoji packs from comments / scheduled. 2022-07-27 14:02:41 +03:00
John Preston 85ec212220 Don't scroll large message menus. 2022-07-27 13:49:27 +03:00
23rd 2d75f9e752 Fixed build with Xcode. 2022-07-27 12:49:52 +03:00
23rd 7e208453c7 Fixed context menu for gift service actions. 2022-07-27 12:49:52 +03:00
23rd 3602155f68 Fixed display of gift service actions for gift senders. 2022-07-27 12:49:52 +03:00
John Preston 4cf4b6a368 Optimize emoji / stickers update requests. 2022-07-26 20:12:14 +03:00
John Preston 4796594011 Fix crash in large animated emoji. 2022-07-26 20:12:14 +03:00
John Preston edfb7bb65a Support custom emoji in IsolatedEmoji. 2022-07-26 20:12:14 +03:00
John Preston 9b941bae97 Copy single selected message without author. 2022-07-26 20:12:14 +03:00