Commit Graph

1148 Commits

Author SHA1 Message Date
John Preston
3658b32db5 Correctly count 'other accounts unread' in menu. 2024-09-19 10:34:01 +04:00
23rd
b78443cf2d Added mini icon to drafts with reply. 2024-09-19 10:34:01 +04:00
John Preston
c18e59218e Show internal list of apps as Stars Examples. 2024-09-05 13:14:07 +04:00
23rd
18c9ee093b Fixed unwanted top offset of dialogs widget when float player opened. 2024-09-04 16:01:54 +02:00
23rd
2b502b22b9 Replaced PeerData::generateUserpicImage with static function. 2024-09-04 10:11:44 +03:00
23rd
03790f3da0 Removed include directive for ui_utility from rp_widget header. 2024-08-28 15:15:58 +03:00
23rd
ae17acdfd4 Removed include directive for ui_utility from rp_widget header. 2024-08-28 14:38:33 +03:00
John Preston
c131d6637d Don't force LTR direction on texts. 2024-08-28 14:57:42 +04:00
John Preston
24b0b33f1d Wrap names in LRM/RLM for correct layout. 2024-08-28 14:55:41 +04:00
23rd
c82b86cea3 Added ability to convert scale float values. 2024-08-27 18:48:19 +03:00
23rd
30077133d4 Fixed drawing online badge.
Regression was introduced in 66cd27a23e.
2024-08-14 18:17:52 +02:00
23rd
d34d3a796d Added initial graphic of badge to dialog row for subscribed channels. 2024-08-14 18:17:51 +02:00
23rd
dca61541d6 Added ability to emplace badge in dialog row for subscribed channels. 2024-08-14 18:17:51 +02:00
John Preston
11c91c1a42 Don't show recent apps in popular apps. 2024-08-01 14:13:27 +02:00
John Preston
7f3dc27aa9 Allow removing mini apps from recents. 2024-08-01 13:28:25 +02:00
John Preston
6a8a85e395 Implement recent/popular apps list. 2024-07-31 17:03:55 +02:00
John Preston
031233ea98 Remove some code duplication. 2024-07-31 17:03:54 +02:00
John Preston
94ad8f9bc3 Don't register collapsed row click as userpic.
Fixes #28149.
2024-07-12 08:45:44 +02:00
John Preston
ab20f8eb31 Fix topics search in topic groups.
Fixes #28110.
2024-07-02 09:53:56 +04:00
John Preston
1fac6db8bd Fix crash in topic search context menu destruction. 2024-07-01 10:46:34 +04:00
John Preston
179e81478e Ignore filter switching in separate window archive. 2024-07-01 09:21:18 +04:00
John Preston
374b3c68ac Fix cancel search with a similar channel open.
Fixes #28079.
2024-06-30 21:16:10 +04:00
John Preston
69d21f73ef Separate window for forums/topics/sublists/archive. 2024-06-30 21:16:10 +04:00
23rd
68cb568898 Fixed build with Qt6. 2024-06-30 21:16:10 +04:00
John Preston
09e6077e97 Suggest global search of cashtags. 2024-06-30 21:16:10 +04:00
Ilya Fedin
2b4a2b5b97 Fix a crash in Dialogs::Widget::setupStories 2024-06-22 11:32:36 +04:00
Ilya Fedin
a22cf8e303 Use RpWidget::windowActiveValue 2024-06-19 10:33:33 +04:00
John Preston
5810149a77 Improve chats search loading indication. 2024-06-16 10:27:38 +04:00
John Preston
501cae2200 Change InputField::font to InputField::style in styles. 2024-06-15 20:56:24 +04:00
John Preston
053c462dc0 Fix recent hashtags in chats search. 2024-06-14 18:34:59 +04:00
23rd
06075411a5 Fixed cases when list of top-up credit options is empty. 2024-06-13 18:44:33 +04:00
John Preston
c585112e37 Fix jump to archive from search in chat. 2024-06-13 16:33:58 +04:00
John Preston
392df8b56f Fix search in archived chats and return back. 2024-06-13 16:24:41 +04:00
John Preston
72c667b153 Redesign search scope selection. 2024-06-06 09:12:23 +04:00
John Preston
9043c18725 Don't drop search on non-empty backspace. 2024-06-03 22:27:15 +04:00
John Preston
23a13ab54e Close chats search when selecting a folder. 2024-06-03 17:13:14 +04:00
John Preston
86778aa4d9 Fix cancel search glitch with the new search. 2024-06-01 23:26:02 +04:00
John Preston
eac7bf1c48 Show "View as Messages" preview on forum preview. 2024-06-01 22:02:17 +04:00
John Preston
59c016e4ce Fix search input not in the end of the query. 2024-06-01 20:39:31 +04:00
John Preston
bb43afdd93 Fix search in chat close by "Cancel" link. 2024-06-01 10:52:48 +04:00
John Preston
a1049ec7ce Add touchscreen preview to recent / channels. 2024-05-31 19:52:36 +04:00
John Preston
1f0acae151 Show frequent/recent selected when preview. 2024-05-31 19:52:36 +04:00
John Preston
521c17b76c Show chat previews in suggestions. 2024-05-31 19:52:36 +04:00
John Preston
f9f51b4e41 Show preview in Frequent Contacts. 2024-05-31 19:52:32 +04:00
John Preston
4e8895ddd9 Show "View as Messages" preview by Alt+Click. 2024-05-31 19:52:32 +04:00
John Preston
ad342a5324 Extract chat preview as a SessionController part. 2024-05-31 19:52:25 +04:00
John Preston
5cfd86b829 Use Ui::Text::String to show topic names.
Fixes #27956.
2024-05-31 19:52:22 +04:00
John Preston
4953246c5d Support touchscreen pinned chats reordering. 2024-05-31 19:52:18 +04:00
John Preston
4df5372dab Support chat preview on touchscreens. 2024-05-31 19:52:12 +04:00
John Preston
056ba644ed Fix empty search placeholder. 2024-05-30 21:35:08 +04:00
23rd
5e29f382cd Fixed build with Xcode. 2024-05-30 21:35:07 +04:00
John Preston
1ce49df123 Fix saved / replies userpics in chats search. 2024-05-30 21:35:06 +04:00
John Preston
1865fd382c Show loading placeholders in chats list. 2024-05-30 21:35:06 +04:00
John Preston
e00c6ecfb8 Show empty / placeholder in chats search. 2024-05-30 21:35:06 +04:00
John Preston
279db771cf Support dynamic search tabs with emoji. 2024-05-30 21:35:06 +04:00
John Preston
7b7438cd7b Make chats list tabs closer to each other. 2024-05-30 21:35:06 +04:00
John Preston
42d53e5543 Fix saved messages tags search. 2024-05-30 21:35:06 +04:00
John Preston
fce520c9c0 Clear saved messages tags on cancel search. 2024-05-30 21:35:06 +04:00
John Preston
b21bcb86cc Fix search from user in forums. 2024-05-30 21:35:06 +04:00
John Preston
7d61ab9412 Improve forum search support. 2024-05-30 21:35:06 +04:00
John Preston
701bf0d553 Fix searching with "from:" prefix. 2024-05-30 21:35:06 +04:00
John Preston
583bcca6a9 Fix forum search open by Ctrl+F. 2024-05-30 21:35:06 +04:00
John Preston
6a8edefc87 Fix some bugs in new chats search. 2024-05-30 21:35:06 +04:00
John Preston
dd5643ac67 Start chats search rewrite. 2024-05-30 21:35:06 +04:00
John Preston
787cf7853e Implement simple chats search bar. 2024-05-30 21:35:06 +04:00
John Preston
f762634036 Support effects API, show icon in info. 2024-05-30 21:35:05 +04:00
John Preston
aa4156d1e7 Ignore shortcuts when preview is shown. 2024-05-30 19:03:08 +04:00
John Preston
4f5594c8cc ChatNext jumps to first chat if no chat opened.
Fixes #27963.
2024-05-30 19:03:04 +04:00
John Preston
7d636820ac Show last updated topic preview on Alt+Click. 2024-05-30 17:02:23 +04:00
John Preston
2b9e7a6b25 Show preview on Force-Click on macOS. 2024-05-30 17:02:09 +04:00
John Preston
470b3a2cbd Fix preview showing on fast userpic click. 2024-05-28 21:42:00 +04:00
John Preston
a60783eae3 Implement preview top and bottom. 2024-05-28 21:42:00 +04:00
John Preston
de73d8766c Open chat on exact clicked message from preview. 2024-05-28 21:42:00 +04:00
John Preston
cd7cfcdf2f Show chat preview on Alt+Click. 2024-05-28 21:42:00 +04:00
John Preston
4427ae4306 Empty preview widget on long userpic press. 2024-05-28 21:41:59 +04:00
John Preston
7db9abf725 Fix forum search open by Ctrl+F. 2024-05-28 10:04:57 +04:00
John Preston
daf30dcab8 Fix jump to last topic in case of unread topic click. 2024-05-27 13:33:25 +04:00
John Preston
36db1105a2 Fix build with Xcode. 2024-05-24 16:09:01 +04:00
John Preston
e26b8e7ebc Fix passcode lock glitch with new search. 2024-05-24 14:14:29 +04:00
John Preston
d91b75b8f8 Allow wide chats in empty window. 2024-05-24 12:55:48 +04:00
John Preston
0551550e61 Don't always open last topic in forums. 2024-05-24 12:55:48 +04:00
John Preston
1c6f45d8d3 Fix drag-n-drop to frequent/recent contacts. 2024-05-24 12:55:48 +04:00
John Preston
ec6d6a78cf Tab toggles search focus, Backspace doesn't focus. 2024-05-24 12:55:48 +04:00
Ilya Fedin
7dbf8ca1f4 Remove unneeded Qt::WA_InputMethodEnabled
The widget already had it
2024-05-21 14:10:47 +04:00
Ilya Fedin
65b62485be Forward input method event from Dialogs::Widget to search field 2024-05-19 11:47:16 +04:00
John Preston
2cb0651b04 Redirect IME to search on Windows. 2024-05-07 22:17:34 +04:00
John Preston
1f3a3ec04b Don't focus search when forum is opened. 2024-05-07 22:17:34 +04:00
John Preston
c1a0172822 De-focus empty search by backspace. 2024-05-07 22:17:33 +04:00
John Preston
129d356909 Fix scrolling expanded frequent contacts. 2024-05-04 18:13:04 +04:00
23rd
26e8c29f40 Moved formatting of dialog last date to td_ui. 2024-05-02 04:09:25 +03:00
John Preston
a62d1dfa63 Focus chats search by Ctrl[Cmd]+F. 2024-05-01 14:38:05 +04:00
John Preston
b3eb1dbc14 Revert "Toggle search focus by escape."
This reverts commit 72d5a9b3e0.
2024-05-01 14:38:05 +04:00
John Preston
32483fa13b Just focus the search field on Space. 2024-05-01 12:57:47 +04:00
John Preston
12a78c1f45 Allow pasting text to the unfocused search. 2024-04-26 20:12:29 +04:00
23rd
804991a69c Added universal duration to styles. 2024-04-26 11:21:41 +04:00
23rd
7388f46adf Fixed display of subscribers count in dialogs suggestions. 2024-04-26 11:21:41 +04:00
John Preston
d5a347ede7 Try cancelling the new search by mouse back button. 2024-04-24 17:41:12 +04:00
John Preston
72d5a9b3e0 Toggle search focus by escape. 2024-04-24 16:56:20 +04:00
John Preston
493f1d69e2 Fix cancel search button overlap. 2024-04-24 16:37:27 +04:00
John Preston
331e8c3ec6 Beta version 4.16.9.
- Show "Frequent contacts" when you focus the search field.
- Show "Recent chats" when you focus the search field.
- Show "Channels" and channel recommendations.
- Allow changing font in Settings > Chat settings > Font family.
2024-04-23 23:14:19 +04:00
John Preston
7111c92ae7 Fix keyboard navigation in top peers. 2024-04-23 19:17:42 +04:00
John Preston
e066cf1589 Add "Show all" for top peers. 2024-04-23 19:17:41 +04:00
John Preston
287d5a7413 Fix shadow below Chats/Channels. 2024-04-23 19:17:41 +04:00
John Preston
768e8b457b Improve second-time choose of toppeers. 2024-04-23 19:17:41 +04:00
John Preston
05474f4a3f Improve filter switching with toppeers. 2024-04-23 19:17:41 +04:00
John Preston
8acada9b0f Fix toppeers animation with expanded stories. 2024-04-23 19:17:41 +04:00
John Preston
e6ba85e112 Keyboard navigation in channels/recommendations. 2024-04-23 19:13:48 +04:00
John Preston
a11535806d Always show cancel search when focused. 2024-04-23 19:13:48 +04:00
John Preston
34a7169b4f Make unread badges on top peers nicer. 2024-04-23 19:13:47 +04:00
John Preston
4f365c73ad Support active selection in recommendations. 2024-04-23 19:13:47 +04:00
John Preston
705bd9693d Load recommendations on demand. 2024-04-23 19:13:47 +04:00
John Preston
a88770a8ec Don't close recommendations. 2024-04-23 19:13:47 +04:00
John Preston
b2d8e2a1e6 Initial version of channels/recommendations. 2024-04-23 19:13:47 +04:00
John Preston
7387dfdd9c Don't create top/recent peers unnecessary. 2024-04-23 19:13:46 +04:00
John Preston
a0a9de1d18 Cancel search on switching folders. 2024-04-23 19:13:46 +04:00
John Preston
360366ba9e Fix opening forums from recent peers. 2024-04-23 19:13:46 +04:00
John Preston
0180fe9468 Animate search suggestions. 2024-04-23 19:13:46 +04:00
John Preston
19f5d95a3c Implement keyboard navigation for recent peers. 2024-04-23 19:13:46 +04:00
John Preston
051ca51d3b Allow clearing search results. 2024-04-23 19:13:46 +04:00
John Preston
2a6ff9203b Implement basic recent search results. 2024-04-23 19:13:46 +04:00
John Preston
3dbadeb232 Allow opening top peers in a new window. 2024-04-23 19:13:46 +04:00
John Preston
c11f4efc5c Support disabling top peers completely. 2024-04-23 19:13:46 +04:00
John Preston
e1c21b908c Add keyboard navigation to top peers. 2024-04-23 19:13:46 +04:00
John Preston
a6c1def6fe Add ripples to top peers. 2024-04-23 19:13:46 +04:00
John Preston
19ae76d8de Top peers context menu. 2024-04-23 19:13:46 +04:00
John Preston
56e28feb00 Top peer realtime badges. 2024-04-23 19:13:45 +04:00
John Preston
b259c566b7 Top peer unread badges and online indicators. 2024-04-23 19:13:45 +04:00
John Preston
18598f8dca Initial version of top peers. 2024-04-23 19:13:45 +04:00
John Preston
11e4c45969 Don't collapse chats list on window unfocus. 2024-04-23 19:13:45 +04:00
John Preston
39658ffe52 Allow narrow chats width without main section. 2024-04-23 19:13:45 +04:00
John Preston
2f03b9aa29 Make dialogs filter onfocused by default. 2024-04-23 19:13:45 +04:00
23rd
1c223e570a Slightly improved code style for long equality expressions. 2024-04-15 11:20:30 +04:00
John Preston
1061fb6c85 Implement collectible username / phone info boxes. 2024-04-02 22:56:21 +04:00
23rd
00a89883fd Added ability to set shortcut to archive chat from dialogs list. 2024-03-25 10:15:42 +04:00
23rd
d03d50ef0d Removed cIntRetinaFactor and cRetinaFactor. 2024-03-24 07:10:07 +03:00
John Preston
88751896af PremiumPreview/BusinessFeature -> PremiumFeature. 2024-03-08 10:53:59 +04:00
John Preston
8545a14763 Fix shortcut messages sizing / emoji panel. 2024-03-08 10:53:59 +04:00
23rd
02e1c03ed9 Fixed position of connecting state widget when forum is opened.
Fixed #27548.
2024-03-08 10:53:58 +04:00
John Preston
46d11b6dcb Use correct phrases in group stories. 2024-02-17 21:06:07 +04:00
John Preston
137155afd8 Use round thumbnail in forum stories. 2024-02-16 11:27:09 +04:00
John Preston
0fd8ceca6b Use Ui::DynamicImage and ui/dynamic_thumbnails module. 2024-02-15 13:51:41 +04:00
John Preston
f674ace805 Send comments to group stories. 2024-02-15 13:51:41 +04:00
John Preston
8459c29073 Allow editing tag name from search tags. 2024-02-02 11:25:04 +04:00
John Preston
0945e04f6b Allow filtering by tag on click in sublists. 2024-02-01 12:37:34 +04:00
John Preston
30548c2859 Support tags search in sublists. 2024-02-01 12:37:34 +04:00
John Preston
3421b656db Fix saved tag click in separate window messages. 2024-02-01 12:37:34 +04:00
John Preston
39b80c98c7 Support tags in ComposeSearch. 2024-02-01 12:37:34 +04:00
John Preston
323500f6dd Improve design of locked tags. 2024-02-01 12:37:34 +04:00
John Preston
11cf0486cb Implement required paywalls in tags. 2024-02-01 12:37:34 +04:00
John Preston
6f57302562 Track tag counts in all sublists. 2024-02-01 12:37:34 +04:00
John Preston
d116c8fea0 Allow editing tag names in Saved Messages. 2024-02-01 12:37:34 +04:00
John Preston
32462fca9b Show tag names in Saved Messages. 2024-02-01 12:37:34 +04:00
John Preston
9f738cded2 Fix saved messages sublists pinning updates. 2024-02-01 12:37:34 +04:00
John Preston
87c1329490 Re-enable tags in Saved Messages. 2024-02-01 12:37:34 +04:00
John Preston
3c5cace175 Fix chats list bottom buttons skip. 2024-01-25 17:55:10 +04:00
John Preston
6e31993777 Update API scheme on layer 172. 2024-01-17 09:39:05 +04:00
John Preston
ed027c23d0 Version 4.14.5: Fix build with GCC. 2024-01-16 20:29:37 +04:00
John Preston
93a734eecf Prepare ttl-media release. 2024-01-16 11:56:08 +04:00
John Preston
6f64fea0b1 Fix build with Xcode. 2024-01-16 11:21:04 +04:00
23rd
a1369aaad0 Added references to structured bindings since Apple clang supports them. 2024-01-16 11:18:55 +04:00
John Preston
d1a0dfbb97 Search by tag on click in Saved Messages. 2024-01-16 11:16:28 +04:00
John Preston
f5fcfaba0c Add search in saved sublist. 2024-01-16 11:16:28 +04:00
John Preston
9c151ca151 Allow filtering Saved Messages search by tags. 2024-01-16 11:16:27 +04:00
John Preston
0faf801de7 Update API scheme to layer 171. 2024-01-16 11:16:27 +04:00
23rd
098e797045 Fixed drawing of ttl circles with non-default scale. 2024-01-04 16:14:19 +03:00
John Preston
c51a8816eb Show selected sublist as active in list. 2024-01-02 12:59:22 +04:00
John Preston
bfe7683cdb Show myself as "My Notes" in Saved Messages sublists. 2024-01-01 09:50:24 +04:00
Ilya Fedin
00e785a3af Remove unused variables 2023-12-31 22:03:57 +00:00
John Preston
2a8a74b5b1 Display correctly forwards of forwards in sublists. 2023-12-31 19:42:24 +04:00
23rd
c2712b0104 Removed redundant semicolons from code. 2023-12-31 19:42:23 +04:00
John Preston
452257dcd5 Show special name/userpic for "Author Hidden". 2023-12-31 19:42:23 +04:00
John Preston
fd417024fb Initial saved sublist section implementation. 2023-12-31 19:42:23 +04:00
John Preston
18c4d210e5 Show saved messages sublists in profile. 2023-12-31 19:42:23 +04:00
John Preston
ead40c759e Update API scheme to layer 170. 2023-12-31 19:42:23 +04:00
23rd
88b20f6700 Fixed indents in some files. 2023-12-16 20:25:01 +00:00
John Preston
fe12c3639b Revert "Removed unused code of hidden sender userpics for sponsored messages."
This reverts commit 3f19dc0486.
2023-12-01 09:18:22 +04:00
John Preston
0e2131e6eb Version 4.12: Fix build with GCC. 2023-11-30 20:59:58 +04:00
23rd
3f19dc0486 Removed unused code of hidden sender userpics for sponsored messages. 2023-11-28 21:55:26 +04:00
23rd
0865776d9a Simplified FileOriginStory. 2023-11-28 21:55:24 +04:00
John Preston
36a8c49213 Show similar channels under join message. 2023-11-28 21:55:24 +04:00
John Preston
0ffda016da Support cloud view_as_messages forum setting. 2023-11-28 21:55:23 +04:00
23rd
acb1a7ccf2 Spread some style entries from basic style. 2023-11-15 04:19:51 +03:00
John Preston
22cedbc9cc Don't show full albums in search results. 2023-11-13 11:39:35 +04:00
John Preston
b2eeab53c5 Improve 5-line reply text elision. 2023-11-06 12:35:27 +04:00
John Preston
e13768ea50 Fix build with Xcode. 2023-10-26 14:08:40 +04:00
John Preston
4240568ea5 Pass FullReplyTo everywhere. 2023-10-26 14:08:40 +04:00
John Preston
dd692f2d26 Use simplified TextStyle. 2023-10-13 10:08:29 +04:00
John Preston
396c229a4d Improve Ui::Text::String features. 2023-10-04 22:24:25 +04:00
John Preston
6ba922d7b0 Fix channel stories open from chats list. 2023-10-04 20:38:14 +04:00
John Preston
4edb11f128 Show channel stories in chats list. 2023-09-28 23:51:29 +04:00
John Preston
547a5a14df Correct stories count in the Info title. 2023-09-26 12:12:43 +04:00
John Preston
a6df03d990 Version 4.10: Fix channel stories phrases. 2023-09-22 20:59:37 +04:00
John Preston
d5b429e910 Update API scheme to layer 164. 2023-09-22 09:43:31 +04:00
John Preston
b17b806d91 Add hide-chats-list-in-forums setting. 2023-09-15 15:36:09 +04:00
23rd
976c696004 Slightly improved style of mini icons in dialogs list for replies story. 2023-09-13 12:09:16 +03:00
23rd
adbe5e9605 Slightly improved style of mini icons in dialogs list. 2023-09-08 11:40:18 +03:00
John Preston
9f0a756f71 Version 4.9.5: Fix build with GCC. 2023-09-05 13:10:03 +04:00
23rd
aad1296829 Fixed overlapping right badges on ellipsis in dialogs list. 2023-09-04 17:36:54 +04:00
23rd
738aff9c4f Fixed paint of mini icon in dialogs list even there is no space for it. 2023-09-04 17:36:54 +04:00
23rd
7740780eeb Respected presence of plain link in preview text for mini icons. 2023-09-04 17:36:54 +04:00