Commit Graph

1790 Commits

Author SHA1 Message Date
23rd ec5e846374 Added initial ability to save and restore state of statistical info. 2023-10-11 22:12:34 +04:00
23rd 3fa168cee0 Added API class for requesting full statistic of single message. 2023-10-11 22:12:34 +04:00
23rd fc3acff5d6 Added support of percentages display to details widget. 2023-10-11 22:12:34 +04:00
23rd da9720530a Added ability to filter out lines from chart on demand from backend. 2023-10-11 22:12:34 +04:00
23rd 3b5a007db5 Added ability to hide footer of chart on demand from backend. 2023-10-11 22:12:34 +04:00
23rd 6109ec70b8 Slightly improved format of dates on charts. 2023-10-11 22:12:34 +04:00
23rd 79442fde97 Fixed incorrect search of index by value in statistical chart data. 2023-10-11 22:12:33 +04:00
23rd cb4c629178 Slightly refactored code for statistical charts. 2023-10-11 22:12:33 +04:00
23rd 8ac6aca315 Split out data for statistics and for charts. 2023-10-11 22:12:33 +04:00
23rd 24c0624704 Added support of default zoom to statistical charts. 2023-10-11 22:12:33 +04:00
23rd 33724be6ea Added support of theme colors for lines on statistical charts. 2023-10-11 22:12:33 +04:00
23rd d9f397ea3f Added display of toast with potential human-readable errors from server. 2023-10-11 22:12:30 +04:00
23rd eb0ab9609f Added API support for request of async zoom single chart. 2023-10-11 22:12:30 +04:00
23rd 520989a7e6 Added initial ability to filter chart lines. 2023-10-11 22:12:29 +04:00
23rd c71f35778d Added API support of channel flag for channel statistics. 2023-10-11 22:12:29 +04:00
23rd 78e553b724 Added usage of segment tree in Data class for statistics. 2023-10-11 22:12:28 +04:00
23rd ca863bfb5b Added dummy Data class for statistics. 2023-10-11 22:12:28 +04:00
23rd b0a65885c9 Added initial entry point for channel statistics. 2023-10-11 22:12:28 +04:00
John Preston 2414e927bd Add initial code syntax highlighting.
Thanks PrismJS and Fela for porting it to C++.
2023-10-04 22:29:16 +04:00
John Preston 396c229a4d Improve Ui::Text::String features. 2023-10-04 22:24:25 +04:00
John Preston bd4cf82405 Don't highlight links in non-premium stories. 2023-09-28 23:51:30 +04:00
John Preston adc6930ac6 Skip irrelevant message on changelog story hiding. 2023-09-28 23:51:30 +04:00
John Preston 846e96579d Fix direct story links for channels. 2023-09-25 17:53:02 +04:00
John Preston eaa491518e Remove changelog stories on archive attempt. 2023-09-25 17:39:18 +04:00
John Preston c5634580f6 Add view button to channel boost link previews. 2023-09-22 09:43:32 +04:00
John Preston 7828a92f08 Implement views/reactions polling in channels. 2023-09-22 09:43:32 +04:00
John Preston d4ba01bad0 Suggested reaction effect around the widget. 2023-09-22 09:43:32 +04:00
John Preston 5d5cae7860 Implement suggested reaction count. 2023-09-22 09:43:32 +04:00
John Preston f3db7e636b Implement channel stories views / reactions. 2023-09-22 09:43:32 +04:00
John Preston 39f8394f98 Enable story actions in channels. 2023-09-22 09:43:31 +04:00
John Preston 29c5f6b706 Support channel stories archive. 2023-09-22 09:43:31 +04:00
John Preston b2c9a92c3e Hide reply field in channel stories. 2023-09-22 09:43:31 +04:00
John Preston d5b429e910 Update API scheme to layer 164. 2023-09-22 09:43:31 +04:00
Ilya Fedin 7906be37b6 Change #if-ery to be more in line with cmake logic (LINUX = NOT WIN32 AND NOT APPLE) 2023-09-15 19:52:22 +04:00
John Preston 98ab91a56a More correct way of applying min stories. 2023-09-14 10:58:29 +04:00
John Preston c3340fd016 Don't destroy by timer single-view media. 2023-09-12 21:01:12 +04:00
John Preston ef969df86e Improve main menu bots disclaimer acceptance. 2023-09-12 21:01:12 +04:00
23rd 3332f012cf Added tooltip and ability to copy external link to sponsored messages. 2023-09-12 11:40:33 +04:00
John Preston 8255de1ba8 Update API scheme to layer 162. 2023-09-04 17:36:55 +04:00
23rd 98bb520f47 Adjusted code for refactor of input fields in lib_ui. 2023-09-04 17:36:54 +04:00
John Preston 119f7e757d Don't show yourself in notification exceptions. 2023-09-01 12:00:25 +04:00
John Preston 827e755552 Allow customizing default notifications. 2023-08-23 19:29:56 +02:00
John Preston b80f5f9706 Manage notifications exceptions in Settings. 2023-08-23 18:09:32 +02:00
John Preston 20ad39bdf9 Version 4.9.2: Fix build with GCC. 2023-08-21 23:58:10 +02:00
John Preston 56555c330b Don't cancel admin log files download on item destroy. 2023-08-21 12:06:20 +02:00
John Preston ccc61028b8 Allow downloading files from webpage collages. 2023-08-18 19:39:22 +02:00
John Preston b610de30f4 Fix adding downloaded files to Downloads. 2023-08-18 19:25:25 +02:00
John Preston 19d5b17d2e Call file dialog from InvokeQueued.
Otherwise for some reason timerEvent-s stop being delivered on
the background thread that processes audio data from the voice chat.

Fixes #24002.
2023-08-16 12:43:01 +02:00
John Preston d57d95c53f Pass context chat from one webview to another. 2023-08-15 15:01:34 +02:00
23rd a0fb81b871 Removed text transform from send button in toasts. 2023-08-15 09:48:45 +03:00
John Preston 79e8b1dbca Don't check contact status for bots / service. 2023-08-14 22:30:40 +02:00
John Preston d52475666d Suggest group-with-hidden-members admins in mentions. 2023-08-14 22:30:39 +02:00
John Preston dbe7f42881 Update API scheme on layer 161. 2023-08-14 22:30:38 +02:00
John Preston 13f67d68c4 Implement custom reactions in stories. 2023-08-14 22:30:38 +02:00
John Preston 066dbfe8fc Handle clicks on location areas in stories. 2023-08-14 22:30:38 +02:00
John Preston ebe2088561 Parse story location marks. 2023-08-14 22:30:38 +02:00
John Preston 4e78c24abf Show reactions count below my stories. 2023-08-14 22:30:38 +02:00
John Preston 318d75cc63 Update API scheme on layer 161. 2023-08-14 22:30:38 +02:00
John Preston 4bd925ac2c Implement simple UI for single-type likes in stories. 2023-08-14 22:30:37 +02:00
John Preston c12297d8cb Implement stealth mode in stories. 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
John Preston 61f4defa4d Partially revert "Support and use share comment in stories."
Send sharing comment as a separate message, like in posts sharing.
2023-07-28 21:20:18 +04:00
John Preston e59e7d9b97 Correct check for scheduled message ids. 2023-07-28 11:48:16 +04:00
John Preston 30334b6c74 Attempt to fix crash in story preloading. 2023-07-25 20:50:21 +04:00
John Preston fb4e05405e Support and use share comment in stories. 2023-07-24 11:43:20 +04:00
John Preston 06e49c6813 Fix opening t.me/channel with min-loaded channels. 2023-07-21 18:21:42 +04:00
John Preston 0b5c0e3e98 Force internal player for stories. 2023-07-21 16:44:28 +04:00
John Preston f8e8155452 Fix possible crash with large UI scale values. 2023-07-21 14:42:26 +04:00
John Preston 863313531d Fix crash in viewed shared story deletion. 2023-07-21 13:44:43 +04:00
John Preston b7370127ff Correctly clear story instances on deletion. 2023-07-21 12:22:53 +04:00
John Preston 76f7a870ed Return loading of full archive. 2023-07-21 11:53:56 +04:00
John Preston e034f5e304 Version 4.8.5.
- Bug fixes and other minor improvements. And stories preview.
2023-07-20 23:19:48 +04:00
John Preston 68fa3e36d7 Fix story mention text updating. 2023-07-20 20:50:04 +04:00
John Preston c2805d92a5 Fix marking stories as read. 2023-07-20 07:20:57 +04:00
John Preston ffd691e556 Update API scheme, pass privacy info to viewer. 2023-07-20 07:20:57 +04:00
John Preston f31b40f6ce Add stories outline to group participants list. 2023-07-20 07:20:57 +04:00
John Preston 4402cce928 Allow archive with stories only. 2023-07-20 07:20:57 +04:00
John Preston 734c5c6740 Use a single Ui::UnreadStoryOutlineGradient. 2023-07-20 07:20:57 +04:00
John Preston 04f1a7be02 Preload not_hidden -> hidden -> archive. 2023-07-20 07:20:57 +04:00
John Preston 10f65c63e7 Allow opening unknown stories from chats list. 2023-07-20 07:20:56 +04:00
John Preston 3c28e7b585 Mark as read recent stories in profile top bar. 2023-07-20 07:20:56 +04:00
John Preston 8a974273b9 Fix possible crash in click handling. 2023-07-20 07:20:47 +04:00
John Preston 6607848abc Fix build with GCC. 2023-07-20 07:20:46 +04:00
John Preston b0403553fa Remove testing more chats bar. 2023-07-20 07:20:46 +04:00
John Preston 61b8aac7c4 Allow manually toggle stories expand state. 2023-07-20 07:20:46 +04:00
John Preston 6a11888852 Poll views for my story that is viewed. 2023-07-20 07:20:33 +04:00
John Preston 5ccb97668c Add short-polling of stories. 2023-07-20 07:20:33 +04:00
John Preston 12fe0a836a Apply editions in realtime, show badge. 2023-07-20 07:20:33 +04:00
John Preston a0ffa15885 Update story mention layout, add outline.
Also use uint32 for bool-bitfields, otherwise:

int a : 1 = 0;
...
const auto test = true;
const auto b = test ? 1 : 0;
if (a != b) {
    a = b;
    ...
}
Assert(a == b); // Violation, because a == -1, not 1 (after a = b).
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 451c4e3101 Implement vertical list of hidden story sources. 2023-07-20 07:20:33 +04:00
John Preston a79deb89ce Update API scheme on laydr 160. 2023-07-20 07:20:33 +04:00
John Preston 5f72a5238c Save to Profile / Archive / Delete in list. 2023-07-20 07:20:33 +04:00
John Preston af0e578da5 Save to Profile / Archive stories from the viewer. 2023-07-20 07:20:32 +04:00
John Preston 6c960243a9 Improve story source context menus. 2023-07-20 07:20:32 +04:00
John Preston 074a4e3c92 Track stories deletion and refresh views. 2023-07-20 07:20:32 +04:00
John Preston 3d795f2f67 Implement story mention messages. 2023-07-20 07:20:32 +04:00
John Preston 010c666d23 Preload next stories inside the media viewer. 2023-07-20 07:20:14 +04:00
John Preston d567282430 Preload stories in the sources lists. 2023-07-20 07:20:14 +04:00
John Preston a57e9990b0 Update API scheme on layer 160. 2023-07-20 07:20:13 +04:00