Commit Graph

2081 Commits

Author SHA1 Message Date
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 a3e8e379dd Show userpics in full who read list. 2021-09-09 11:48:30 +03:00
John Preston 14314df26a Show userpics in who read context item. 2021-09-09 00:10:49 +03:00
John Preston eb1874566b Fix media caption text selection rendering. 2021-09-08 13:47:34 +03:00
John Preston abbac61702 Show who've seen the message in submenu. 2021-09-07 23:41:08 +03:00
John Preston 2f5f100626 Start loading users who've read an outgoing message. 2021-09-07 23:41:08 +03:00
John Preston 4273167aa2 Adjust outgoing bubble text and icon colors. 2021-09-07 23:41:08 +03:00
John Preston c318f57fc0 Use outbox bubble colors, adjust custom colors. 2021-09-07 23:41:08 +03:00
John Preston a6c98f4bb4 Update API scheme to layer 133. 2021-09-07 23:41:07 +03:00
23rd 92425c7a1e Fixed space of action animation in middle text for different scales. 2021-09-07 23:41:07 +03:00
23rd dabe83bd27 Fixed animation updating with small width for choosing sticker. 2021-09-07 23:41:07 +03:00
23rd c1d3e5f0c5 Removed sending of typing action when sticker is chose in autocomplete. 2021-09-07 23:41:07 +03:00
23rd d4c0ac5e4a Removed forwarding options for dices. 2021-09-07 23:41:07 +03:00
John Preston 84cbb98000 Attempt#3 to fix build with GCC. 2021-09-07 12:59:33 +03:00
John Preston 32301046e7 Attempt#2 to fix build with GCC. 2021-09-07 12:56:54 +03:00
John Preston 246f2ca1ac Attempt to fix build with GCC. 2021-09-07 12:19:42 +03:00
John Preston 241798ac29 Custom colors in historyDown/unreadMentions buttons. 2021-09-06 13:13:26 +03:00
John Preston 64457cd6cb Custom colors in FillComplex(Overlay|Location)Rect. 2021-09-06 13:13:26 +03:00
John Preston b2364140e9 Custom colors in all media/history_view_ modules. 2021-09-06 13:13:26 +03:00
John Preston cbfe57c51d Custom colors in history_view_document module. 2021-09-06 13:13:26 +03:00
John Preston 23e9e7b9f0 Remove for_const macro. 2021-09-06 13:13:26 +03:00
John Preston 2a2607d026 Custom colors in history_view_service_message module. 2021-09-06 13:13:26 +03:00
John Preston 1a4a9319f3 Custom colors in history_view_message module. 2021-09-06 13:13:26 +03:00
John Preston 5aff4cca0e Fix rare crash in message history resizing. 2021-09-01 19:21:39 +03:00
23rd 59977da2b4 Added choosing sticker action to field autocomplete. 2021-09-01 01:23:20 +03:00
23rd eadd7704ef Removed Main::Session forward declaration from data_types. 2021-09-01 01:23:20 +03:00
John Preston 9dfc60026e Add simple forwarding options on bar click. 2021-08-31 19:47:38 +03:00
John Preston e9a5c45f34 Use separate strings for channel voice chats. 2021-08-31 17:59:29 +03:00
23rd 92b7afc5f5 Fixed position of send action animation. 2021-08-31 14:06:11 +03:00
23rd dc8eb79295 Moved code of data send actions from Data::Session to separated file. 2021-08-30 23:08:57 +03:00
23rd f7abd85761 Slightly optimized replacement in send action text. 2021-08-30 21:45:56 +03:00
23rd 436212bb88 Added animation of send action for stickers to middle of text. 2021-08-30 20:50:36 +03:00
23rd 8c17e3e578 Added sending action when choosing sticker. 2021-08-30 20:50:32 +03:00
23rd 0852dbc40f Formatted classes for send actions. 2021-08-30 20:50:28 +03:00
23rd ccea6ce492 Added animated indicator of choosing sticker action to chats list. 2021-08-30 20:50:24 +03:00
John Preston 52a6282eb9 Count unread replies locally when possible. 2021-08-30 20:32:58 +03:00
John Preston c39024c7fd Track and display unread count in discussions. 2021-08-30 20:32:58 +03:00
John Preston 85e4c8527b Always write local drafts the same way. 2021-08-30 20:32:58 +03:00
John Preston f2da34c9f5 Fix jump to message / to end in discussions. 2021-08-30 20:32:58 +03:00
John Preston 9709297713 Remove unread bar in not-seen post comments opening. 2021-08-30 20:32:58 +03:00
John Preston 809b0e9fe0 Fix build for Linux. 2021-08-30 20:32:58 +03:00
John Preston beff635e45 Colorize bubbles according to a custom chat theme. 2021-08-30 20:32:57 +03:00
John Preston f5a323e40a Move all background helper methods to chat_theme module. 2021-08-30 20:32:57 +03:00
John Preston 0a1e84ddb2 Move ChatTheme to td_ui. 2021-08-30 20:32:57 +03:00
John Preston 3cd0f9d189 Start non-unique ChatTheme. 2021-08-30 20:32:57 +03:00
John Preston f3dd8c68b3 Load chat cloud themes list. 2021-08-30 20:32:57 +03:00
John Preston 70808dfa7d Show chat theme changing service messages. 2021-08-30 20:32:57 +03:00
John Preston 0cfede984c Update API scheme to layer 132. 2021-08-30 20:32:56 +03:00
John Preston 2694cb76a7 Remove crash debug information from streaming. 2021-08-25 11:24:32 +03:00
23rd df0229cffd Fixed render of text selection in sections.
Regression was introduced in f4fdadd3b0.
2021-08-24 20:02:36 +03:00
23rd 3a92a181a1 Fixed editing on Up arrow in sections with non-empty input field. 2021-08-23 13:57:35 +03:00
John Preston 784d57a2bc Use QImage bubbles background for some Media parts. 2021-08-20 14:54:11 +03:00
John Preston f4fdadd3b0 Allow arbitrary QImage as outgoing bubbles background. 2021-08-20 14:54:11 +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 1792bed721 Remove additional padding in shared contacts. 2021-08-18 15:52:04 +03:00
John Preston a502cbc06e Move message link up in registered shared contacts.
Fixes #16804.
2021-08-18 15:48:30 +03:00
John Preston 02f48a7781 Don't allow selected items together with text. 2021-08-18 14:52:49 +03:00
John Preston 33936195a1 Animate the chat background in Saved Messages. 2021-08-18 11:33:37 +03:00
John Preston f2f19b14eb Fix reading one message if last one is outgoing. 2021-08-17 18:07:20 +03:00
John Preston 5a882d1fdc Rotate background in ListWidget. 2021-08-17 14:55:40 +03:00
John Preston 7a06eccaec Make complex gradients animate on outgoing messages. 2021-08-16 16:07:43 +03:00
John Preston b239506150 Fix pattern wallpaper preview on retina screens. 2021-08-16 10:26:08 +03:00
John Preston 3dadcd9352 Animated transition on pattern-on-gradient resize. 2021-08-16 10:26:08 +03:00
John Preston 1bc5277d51 Show color / gradient wallpapers in WebPage previews. 2021-08-16 10:26:08 +03:00
John Preston c2b1187948 Start support of linear gradient wallpapers. 2021-08-16 10:26:08 +03:00
John Preston 474a6a71d9 Move unread mentions menu to chat_helpers/send_context_menu. 2021-08-12 10:06:16 +03:00
John Preston 393173c1da Finish 'Mark mentions as read' context menu. 2021-08-12 09:46:02 +03:00
test f189ffc6ac Summary 2021-08-12 08:52:56 +03:00
Ilya Fedin 414456d003 Revert "Use gtk clipboard when available to avoid https://bugreports.qt.io/browse/QTBUG-56595"
Fixed in Qt by https://codereview.qt-project.org/c/qt/qtbase/+/306771

This reverts commit 3a91003eea.
2021-08-12 08:51:10 +03:00
23rd ea3191badf Fixed Github CI build. 2021-08-12 08:34:51 +03:00
23rd 76eb00cea9 Added drafts saving on account switching. 2021-08-12 02:36:41 +03:00
John Preston c79cd0b692 Use Images::Read instead of App::readImage. 2021-08-11 18:55:08 +03:00
Ilya Fedin 97262a99c7 Get rid of osx and linux32 special targets 2021-08-11 16:59:27 +03:00
23rd 0ae260c6e1 Moved MTP blocked peers from ApiWrap to Api::BlockedPeers. 2021-08-10 15:46:18 +03:00
23rd 221ded6d54 Fixed handle of last message on Up arrow in sections on macOS. 2021-08-10 15:46:18 +03:00
23rd 6f80811ecd Fixed applying server messages as scheduled.
Fixed #16726 and many other problems.
2021-08-10 15:46:18 +03:00
John Preston f3ab01604c Version 2.9: Fix build on Linux. 2021-07-30 21:03:49 +03:00
John Preston b2e829904f Add support for 1 month self-destruct messages. 2021-07-30 16:05:13 +03:00
John Preston 663c99cc2d Fix build on macOS. 2021-07-29 15:30:22 +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
23rd 479611f6df Removed ui_getPeerForMouseAction. 2021-07-27 02:50:08 +03:00
23rd dcc8a64d37 Removed App::sendBotCommand. 2021-07-27 02:50:08 +03:00
23rd a030907598 Refactored sending bot commands. 2021-07-27 02:50:08 +03:00
23rd 34cac3092f Moved utils for sending bot commands to separated file. 2021-07-27 02:50:08 +03:00
23rd 93bcd90fd4 Provided more context for click handlers. 2021-07-27 02:18:49 +03:00
23rd 82165bec5e Replaced MainWidget::replyToItem with history element delegate. 2021-07-26 17:39:18 +03:00
23rd 65aecf16a6 Removed App::wnd() from HistoryView::Message. 2021-07-26 17:38:52 +03:00
23rd ca83b8a8c6 Removed App::wnd() from HistoryView::Contact. 2021-07-26 17:38:52 +03:00
23rd 024bb5e54f Moved App::formatPhone to td_ui. 2021-07-26 17:38:51 +03:00
23rd a14f2144e1 Removed layout.cpp/h. 2021-07-26 17:38:51 +03:00
23rd 6e2f8eb9a7 Moved text selection utils to td_ui. 2021-07-26 17:38:51 +03:00
23rd 2256482ae0 Moved layout utils to td_ui. 2021-07-26 17:38:51 +03:00
23rd 2d354f8777 Added ability to save GIFs from context menu in sections.
Fixed #8739.
2021-07-23 22:05:23 +03:00
John Preston b27dc4ef8d Fix crash in messages animation. 2021-07-23 21:41:43 +03:00
23rd 73bb1382b1 Replaced MatrixRowShift with layout utils. 2021-07-23 15:42:17 +03:00
23rd e1ff230547 Added info for empty section of scheduled messages. 2021-07-23 15:42:16 +03:00
23rd 95a896004f Added bubble widget for empty list info in modern history view list. 2021-07-23 15:42:16 +03:00
John Preston 3a26644fa2 Fix new messages animation in sections. 2021-07-20 20:21:20 +03:00
23rd a6dbcdad54 Disabled auto-closing section of scheduled messages after 'Send Now'. 2021-07-20 19:30:00 +03:00
23rd 2de0b79b4e Fixed overlapping emoji suggestions in Replies section. 2021-07-20 12:20:31 +03:00
John Preston 773912f586 Apply local / server comment updates together. 2021-07-20 12:20:22 +03:00
John Preston c789349b24 Support add item animation in ListWidget (sections). 2021-07-20 12:20:22 +03:00
John Preston 7bbc4b7191 Add basic new messages animation. 2021-07-20 12:20:22 +03:00
Ilya Fedin ba9b72e038 Fix -Wunused-variable warnings with gcc 2021-07-19 22:31:27 +03:00
John Preston 4276b6cce0 Use rpl for Window::Theme::Background updates. 2021-07-15 16:42:36 +03:00
Ilya Fedin 79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
Ilya Fedin b6881022ce Allow to build with -Werror and clang
Fixes -Wdeprecated-enum-enum-conversion, -Wdeprecated-declarations, -Wrange-loop-construct, -Winconsistent-missing-override
2021-07-13 21:32:06 +03:00
John Preston 75090dedaa Don't store MTPInputStickerSet in data. 2021-07-08 22:08:59 +03:00
23rd 9dfb43d525 Fixed build for macOS and Linux. 2021-07-08 20:18:40 +03:00
John Preston f22e68fc32 Don't use MTP* for PeerSettings flags. 2021-07-08 17:32:39 +03:00
John Preston a74228acea Don't use MTP* for ChannelData flags. 2021-07-08 16:11:09 +03:00
John Preston 5040c2e766 Don't use MTP* for ChatData flags. 2021-07-08 15:11:46 +03:00
John Preston e34375405e Don't use MTP* for UserData flags. 2021-07-08 14:19:12 +03:00
John Preston 2ffda9f240 Don't use MTP* for ChatAdminRight / ChatRestriction. 2021-07-08 13:34:06 +03:00
John Preston d5a416d5ea Beta version 2.8.6: Fix build for macOS. 2021-07-06 20:25:46 +03:00
23rd a631a28092 Removed App::pixmapFromImageInPlace. 2021-07-06 12:13:06 +03:00
23rd 96b40f43e9 Added ability to drag and drop images in photo editor. 2021-07-06 12:13:06 +03:00
23rd bc316a2536 Removed Storage::UploadedThumbDocument struct. 2021-07-06 12:13:05 +03:00
John Preston aaefeed3f1 Support custom keyboard placeholders. 2021-07-05 21:12:52 +03:00
John Preston aece7c1096 Remove testing code in stickers view. 2021-07-02 22:11:34 +03:00
John Preston b930bc0e6d Track bot commands separately in different chats. 2021-07-02 20:41:48 +03:00
John Preston b22e2ffe1d Animate inline path thumbnails with sliding gradient. 2021-07-02 20:40:32 +03:00
John Preston 4124c2eb57 Show inline path thumbnails for stickers. 2021-07-02 13:13:48 +03:00
23rd bb76818cc8 Split adaptive changed rpl::producer into two. 2021-06-24 11:25:35 +04:00
23rd 7c02d67665 Moved cancelUploadLayer from MainWidget to SessionController. 2021-06-18 09:39:10 +03:00
23rd 23c54896e5 Removed App::main() from file click handlers. 2021-06-18 09:20:49 +03:00
23rd 6c56fad180 Fixed updating of parent id for file click handlers.
Fixed #16447.
2021-06-18 07:30:54 +03:00
23rd 3fd772ce17 Moved file click handlers to separated file. 2021-06-18 07:30:54 +03:00
23rd 7924979dfb Removed Ui::showPeerHistoryAtItem from facades. 2021-06-17 10:57:46 +04:00
23rd 1f816c249b Replaced DocumentOpenClickHandler. 2021-06-17 10:57:45 +04:00
23rd dc0aaec4a4 Added ability to show document from Controller for sections. 2021-06-17 10:57:45 +04:00
23rd eefa7263b5 Added ability to show photo from Controller for sections. 2021-06-17 10:57:45 +04:00
23rd 7885be4a94 Added ability to show content from Controller for inline results. 2021-06-17 10:57:45 +04:00
23rd 583c3d3429 Moved static functions from DocumentData to separated file. 2021-06-17 10:57:45 +04:00
23rd b422ec025e Removed Ui::show from classes that have pointer to Controller. 2021-06-17 10:57:45 +04:00
23rd 6d08542afa Moved proxy global variables from facades to core settings. 2021-06-16 09:31:32 +03:00
23rd 2ed3543b53 Renamed class back from AdaptiveModern to Adaptive. 2021-06-16 09:31:32 +03:00
23rd 9669a8a44a Moved Core::Settings:chatWide to Window::Adaptive. 2021-06-16 09:31:32 +03:00
23rd 295a863d69 Removed Adaptive namespace from Profile::BackButton. 2021-06-16 09:31:32 +03:00
23rd 0d814066d6 Removed Adaptive namespace from top bar widgets. 2021-06-16 09:31:32 +03:00
23rd 1af8e89eb9 Removed Adaptive namespace from HistoryWidget. 2021-06-16 09:31:32 +03:00
23rd 7cf79e1f8a Removed Adaptive namespace from sections. 2021-06-16 09:31:32 +03:00
23rd 0fe7c07007 Replaced observable with rpl in FixedBar of admin log. 2021-06-16 09:31:32 +03:00
23rd 9e6afa0d4e Removed observable dragFinished from MainWindow. 2021-06-16 09:31:32 +03:00
23rd 386fae952b Replaced observable in SessionController with rpl. 2021-06-16 09:31:32 +03:00
John Preston de3ea30d69 Don't show messages to support as always-read. 2021-06-09 09:19:29 +04:00
John Preston 607263b8be Fix seek / cancel of video playback in media viewer. 2021-06-09 09:19:28 +04:00
23rd 5c54d3690c Added floating date badge to Shared Photos and Shared Videos. 2021-06-09 09:19:27 +04:00