Commit Graph

440 Commits

Author SHA1 Message Date
John Preston
c51a8816eb Show selected sublist as active in list. 2024-01-02 12:59:22 +04:00
John Preston
18c4d210e5 Show saved messages sublists in profile. 2023-12-31 19:42:23 +04:00
John Preston
0ffda016da Support cloud view_as_messages forum setting. 2023-11-28 21:55:23 +04:00
John Preston
dd692f2d26 Use simplified TextStyle. 2023-10-13 10:08:29 +04:00
23rd
9d4b8bb9b0 Introduced new struct to dialogs style for icons. 2023-08-30 16:46:19 +03:00
John Preston
311691a3bc Use FlatLabel::textMaxWidth. 2023-08-17 13:54:53 +02:00
John Preston
daef7faaa4 Don't open stories from userpic in narrow chats mode. 2023-07-21 20:23:52 +04:00
John Preston
85795aa376 Working stories in overscroll. 2023-07-20 07:20:44 +04:00
John Preston
dc806d4286 Try ElasticScroll in Dialogs::Widget. 2023-07-20 07:20:33 +04:00
John Preston
d7d8847c1d Show stories in chats list userpics. 2023-07-20 07:20:33 +04:00
John Preston
6c960243a9 Improve story source context menus. 2023-07-20 07:20:32 +04:00
John Preston
71e341237d Improve touchscreen chats list stories physics. 2023-07-20 07:20:14 +04:00
John Preston
b46659eb22 Restore scroll to collapsed stories in chats list. 2023-07-20 07:20:14 +04:00
John Preston
aa2cf2f6ca Collapse stories on chat open. 2023-07-20 07:20:14 +04:00
John Preston
010c666d23 Preload next stories inside the media viewer. 2023-07-20 07:20:14 +04:00
John Preston
4e39144d0f Resolve unknown story on open. 2023-07-20 07:20:12 +04:00
John Preston
e98770d418 Improve saved / archive stories design. 2023-07-20 07:20:12 +04:00
John Preston
ad5b96b049 Show toasts on reply / archive / unarchive. 2023-07-20 07:20:11 +04:00
John Preston
e7c0385aea Show hidden stories above contacts list. 2023-07-20 07:20:10 +04:00
John Preston
f40391b4f0 Support two lists of stories sources. 2023-07-20 07:20:10 +04:00
John Preston
d0e1ac1238 Start hiding stories from chats list. 2023-07-20 07:20:10 +04:00
John Preston
4a67641460 Load more story users on demand. 2023-07-20 07:20:09 +04:00
John Preston
cdd4774bb8 Fix initial stories collapsing in chats list. 2023-07-20 07:20:09 +04:00
John Preston
7a042c23e9 Use real stories data, open from chats list. 2023-07-20 07:20:09 +04:00
John Preston
16128d61c0 Implement nice stories list scrolling. 2023-07-20 07:20:08 +04:00
John Preston
1d27c8c940 Paint nice stories userpics in chats list. 2023-07-20 07:20:08 +04:00
John Preston
84c75f4a74 Fix out-of-clip-area dialog paint with collapsed archive. 2023-03-17 16:48:22 +04:00
John Preston
f2ed77649e Preload complex last message on demand. 2023-02-09 09:56:54 +04:00
John Preston
bbd937115c Add "Open in new window" to context menu. 2023-02-03 20:47:59 +04:00
John Preston
7023b013ce Initial support of separate windows for accounts. 2023-01-19 09:45:28 +04:00
John Preston
21232e09a4 Fix a crash in topic from archive search.
Fixes #25609.
2023-01-09 09:36:20 +04:00
John Preston
9933c6ba59 Mark topics as read using Ctrl+R shortcut.
Fixes #25669.
2023-01-05 09:53:51 +04:00
John Preston
b962efeca3 Allow ctrl+6/7/8 to activate extra pinned chats.
Fixes #25647.
2023-01-03 09:59:42 +04:00
John Preston
191ea6f0f4 Fix search in chat / jump to archive. 2022-12-26 14:24:07 +04:00
John Preston
5ebea97ded Fix deleting a search result in chats list. 2022-12-26 14:24:06 +04:00
John Preston
833a259234 Colorize emoji in text color correctly. 2022-12-26 14:24:06 +04:00
John Preston
58fe2d7ecc Fix last topic opening on some systems. 2022-12-07 13:08:41 +04:00
John Preston
6e75668e45 Fix forum without last topic opening. 2022-12-06 22:51:33 +04:00
John Preston
a8106aa38d Fix glitches in search results. 2022-12-06 20:33:17 +04:00
John Preston
4db2b83c9b Fix Ctrl+Tab/Ctrl+Shift+Tab jumps in topics. 2022-12-06 14:32:46 +04:00
John Preston
a1de77e8d2 Improve child list closing. 2022-12-06 14:32:46 +04:00
John Preston
2d6bac5a28 Fix background color in collapsed row with child list. 2022-12-06 13:05:05 +04:00
John Preston
cb653df0f6 Support adaptive forum userpic rounding radius. 2022-12-05 16:18:10 +04:00
John Preston
2407ac50bc Improve shading of collapsed chats list. 2022-12-05 10:07:54 +04:00
John Preston
e26dd4e418 Fix a crash in chats filter results. 2022-12-04 08:00:20 +04:00
John Preston
a4e4681835 Add jump-to-topic panel in View as Messages. 2022-12-02 18:20:22 +04:00
23rd
92756f418b Added TTL badge to dialogs list. 2022-12-02 00:28:19 +03:00
John Preston
f0b8ccbd71 Collapse forum row height in narrow layout. 2022-12-01 21:36:26 +04:00
John Preston
32491ead5e Animate child topics list open / close. 2022-12-01 18:03:20 +04:00
23rd
4fabb3f2a2 Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03:00
John Preston
ad3f8e72a0 Remove namespace App. 2022-11-30 17:28:09 +04:00
John Preston
01139e1b04 Remove facades module. 2022-11-30 16:55:51 +04:00
John Preston
eaed91263e Simplify HistoryHider, remove most of uses. 2022-11-30 16:13:31 +04:00
John Preston
188c6ba64a Paint expanded topics indicator. 2022-11-30 13:57:00 +04:00
John Preston
f324017299 Don't open unread topic on full forum row click. 2022-11-30 13:03:42 +04:00
John Preston
76837c6f44 Fix render glitches in pinned forum reordering. 2022-11-30 13:03:42 +04:00
John Preston
5e6a4d9e8d Fix crash in jump-to-topic from filtered results. 2022-11-30 13:03:42 +04:00
John Preston
5d8a2bc7b7 Implement simple sub-column for topics list. 2022-11-30 13:03:42 +04:00
John Preston
beaea9c57d Update dialog row height on topic switch. 2022-11-29 23:13:51 +04:00
John Preston
03b35457fa Fix collapsed narrow archive row display. 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
116a598508 Fix displaying of collapsed archive row. 2022-11-23 23:01:05 +01:00
John Preston
79a2d85287 Fix build with GCC. 2022-11-22 00:28:07 +00:00
John Preston
106bdae9ce Always open first topic in two-column layout. 2022-11-22 00:26:49 +00:00
John Preston
561e3f4809 Handle clicks on topic jump area. 2022-11-22 00:26:48 +00:00
John Preston
ede34578da Display jump to last topic message bubble. 2022-11-22 00:26:48 +00:00
John Preston
97356032ac Fix build in Xcode. 2022-11-22 00:26:48 +00:00
John Preston
4c8187f623 Topics list in forum chats list entry. 2022-11-22 00:26:48 +00:00
John Preston
37308cde21 Support dialog rows with variable height. 2022-11-22 00:26:48 +00:00
John Preston
8a288476b8 Implement pinned topics reordering. 2022-11-22 00:26:48 +00:00
John Preston
644ec1f599 Remove base::Observable / base::Variable. 2022-11-11 11:43:24 +04:00
23rd
629314cfa2 Added saving of scroll state in dialogs widget for restoring from forum. 2022-11-07 15:39:03 +03:00
John Preston
9a54473e03 Fix dialog row updating on user online status change.
Regression was introduced in ed895ace66.

Fixes #6410. Again. I hope.
2022-11-07 15:11:15 +04:00
John Preston
6e606f3bb6 Animate topic icons only twice in topics list. 2022-11-07 14:32:06 +04:00
23rd
03c08ad95f Added saving of scroll state in dialogs widget between chats filters. 2022-11-01 19:25:45 +04:00
John Preston
1ac051a812 Implement forwarding to topics. 2022-11-01 19:25:44 +04:00
John Preston
da1e784803 Search from a user inside forum / topic. 2022-11-01 19:25:43 +04:00
John Preston
ee8f997c14 Implement search inside a single topic. 2022-11-01 19:25:43 +04:00
John Preston
60aef7871a Append server-side topic search results. 2022-11-01 19:25:43 +04:00
John Preston
d6ee5b3456 Show forum messages search results with topics. 2022-11-01 19:25:42 +04:00
John Preston
88d1a502a5 Implement search in topics / forum messages. 2022-11-01 19:25:42 +04:00
John Preston
97d8aa0a0d Add a distinct forum icon in chats list. 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
4910a60499 Track mentions / reactions together with unread. 2022-11-01 19:25:40 +04:00
John Preston
a292f8a34e Allow opening forums from archive / filters. 2022-11-01 19:25:40 +04:00
John Preston
89d0a71591 Update API scheme on layer 148: Drafts in topics. 2022-11-01 19:25:38 +04:00
John Preston
6997e165c6 Forum three-dot menu, except search. 2022-11-01 19:25:37 +04:00
John Preston
f258b054e8 Request last topic message if it becomes unknown. 2022-11-01 19:25:36 +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
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
3b3792ef75 Allow editing topic title and icon. 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
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
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
f0955f2021 Add emoji-status disclaimer for unknown peers. 2022-09-06 11:20:55 +04:00
John Preston
2d07539892 Support colored emoji statuses. 2022-09-02 21:14:33 +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
John Preston
8bc807dc40 Set name / phone texts on-demand. 2022-08-09 14:12:19 +03:00
John Preston
b976aa0872 Support custom emoji in chats list entries. 2022-07-26 20:12:08 +03:00
John Preston
a780fbd09b Add "ctrl-click-chat-new-window" option. 2022-06-07 22:05:37 +04:00
John Preston
df17f20a47 Support attach bot menu / reload / settings. 2022-06-03 20:07:33 +04:00
John Preston
d81bba155a Update some premium icons. 2022-05-20 19:28:50 +04:00
John Preston
3b5ec78f4f Show first (may be non-"All Chats") folder by default. 2022-05-19 17:27:03 +04:00
John Preston
fe91887ea2 Update API: support "All Chats" reordering. 2022-05-19 17:27:03 +04:00
John Preston
73bacfc650 Animate video userpics in chat history. 2022-05-19 17:27:03 +04:00
John Preston
201edb2e69 Play premium video avatars in chats list. 2022-05-19 17:27:03 +04:00
23rd
67d8a7e106 Moved out peer menu callback and its creation to separated files. 2022-04-01 15:53:58 +04:00
23rd
4bcd9de2b0 Added submenu support to Window::PeerMenuCallback. 2022-04-01 15:53:57 +04:00
23rd
c520cb777c Replaced Window::PeerMenuCallback with struct. 2022-04-01 15:53:57 +04:00
23rd
c96b2081c4 Removed Q_OBJECT from Dialogs::InnerWidget. 2022-03-15 18:02:30 +03:00
23rd
72ecc286dc Replaced timer for dragging scroll in Dialogs::Widget with manager. 2022-03-15 18:02:30 +03:00
23rd
3ebb9af8f8 Removed Ui::hideSettingsAndLayer(). 2022-03-04 11:25:10 +03:00
John Preston
d89d8b09da Preload chats in support switch. 2022-02-08 00:24:11 +03:00
23rd
0143d22a21 Split qt_adapters to separated files. 2022-01-26 10:33:28 +03:00
23rd
e451eb5126 Removed text commands from dialogs list. 2022-01-12 11:54:24 +03:00
John Preston
20411be9bd Allow creating separate windows for peers. 2022-01-04 14:18:13 +03:00
John Preston
2c36623cfb Add some icons to popup menus. 2021-12-29 21:22:33 +03:00
John Preston
5e7e7eaa83 FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
John Preston
01c2be3f01 Add some checks for actions in a locked state. 2021-12-07 10:01:56 +04:00
Ilya Fedin
847c01d605 Add Qt 6 support
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
John Preston
8c21fad642 Move preview paint to Dialogs::Ui::MessageView. 2021-10-04 23:45:21 +04:00
John Preston
5136cc3c9c Rename Dialogs::Layout to Dialogs::Ui. 2021-10-04 23:45:21 +04:00
John Preston
b78b27f517 Move dialogs_layout to dialogs/ui/. 2021-10-04 23:45:21 +04:00
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
23rd
dc8eb79295 Moved code of data send actions from Data::Session to separated file. 2021-08-30 23:08:57 +03:00
23rd
436212bb88 Added animation of send action for stickers to middle of text. 2021-08-30 20:50:36 +03:00
Ilya Fedin
97262a99c7 Get rid of osx and linux32 special targets 2021-08-11 16:59:27 +03:00
John Preston
116a768fde Don't use MTP* for Message flags. 2021-07-28 15:28:17 +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
John Preston
03147a5426 Fix possible crash in case of API error. 2021-06-23 14:29:38 +04:00
23rd
b422ec025e Removed Ui::show from classes that have pointer to Controller. 2021-06-17 10:57:45 +04:00
23rd
aad38c2809 Replaced observable in Window::Notifications::System with rpl. 2021-06-16 09:31:32 +03:00
23rd
3340b2dc03 Replaced observable in Dialogs::InnerWidget with rpl. 2021-06-16 09:31:32 +03:00
John Preston
25470cde3c Fix unread badge styles on palette changes. 2021-04-19 11:26:04 +04:00
John Preston
1342077dcb Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
Ilya Fedin
0c8febce9c Avoid allocations for case-insensetive compare 2021-03-16 12:20:48 +03:00
Ilya Fedin
c0c10689a1 Get rid of deprecated ranges::view usage 2021-03-13 19:14:58 +03:00
Ilya Fedin
23272430b4 Build with QT_NO_KEYWORDS 2021-03-04 12:07:54 +04:00
John Preston
8142acc709 Remove legacy #feed code. 2021-02-25 17:03:51 +04:00
23rd
0b4d0b83c2 Removed App::wnd from classes that have pointer to Window::Controller. 2021-02-04 18:13:04 +04:00
23rd
019e691fbb Moved some session dependent methods to SessionController.
MainWindow::showAddContact(),
MainWindow::showNewGroup(),
MainWindow::showNewChannel().
2021-02-04 18:13:03 +04:00
23rd
dd01ece14a Replaced snap util function with std::clamp. 2021-01-24 10:41:10 +03:00
John Preston
574d915c23 Fix build and tray icon menu on Windows. 2021-01-22 16:53:59 +04:00
23rd
1ccfcc824c Updated code to be consistent with lib_ui. 2021-01-22 16:53:59 +04:00