Commit Graph

15001 Commits

Author SHA1 Message Date
John Preston e41dba5fb2 Cache title controls layout. 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 9a29807276 Show stories segments in contacts list. 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 f0ab6e5690 Update main menu and stories icons. 2023-07-20 07:20:33 +04:00
John Preston ef1f1846a4 Respect PowerSaver in TranslateBox. 2023-07-20 07:20:33 +04:00
John Preston e66d9d5d24 Fix jump to top on a new message send. 2023-07-20 07:20:33 +04:00
John Preston fcc15dd52d Open profile on header click. 2023-07-20 07:20:33 +04:00
John Preston ac534780cc Implement context menu actions in stories list. 2023-07-20 07:20:33 +04:00
John Preston a733b83642 Use stories ShareBox from the saved stories list. 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 1d5b57c39c Add video story saved toast to viewer. 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 75d4ba7be1 Use scroll phase information from wheel events. 2023-07-20 07:20:32 +04:00
John Preston 1cd20ff5e2 Implement custom scrolling using DirectManipulation.
Use it in Ui::RpWindow. This is an experiment.

Thanks Chromium and Firefox.
2023-07-20 07:20:29 +04:00
John Preston 24012a76b3 Fix stories snap-by-timeout on macOS. 2023-07-20 07:20:14 +04:00
John Preston 71e341237d Improve touchscreen chats list stories physics. 2023-07-20 07:20:14 +04:00
John Preston fba1b79252 Don't delete files on Shift+Drop on Windows. 2023-07-20 07:20:14 +04:00
John Preston fda2f56fd8 Don't copy empty selected text. 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 a73490e5ad Add simple scroll control to Hidden Stories. 2023-07-20 07:20:14 +04:00
John Preston c61e1b9139 Don't scroll through from chats list to stories. 2023-07-20 07:20:14 +04:00
John Preston 7f583f86c0 Nice expand / collapse animations. 2023-07-20 07:20:14 +04:00
John Preston aff094f278 Prevent some accidental story closing. 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 bc7da9309d Fix controls in regular media viewer. 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 d567282430 Preload stories in the sources lists. 2023-07-20 07:20:14 +04:00
John Preston 21543338d7 On typing in messages selection focus input field. 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
John Preston e7ccf5d8ad Fix possible std::clamp contract violation. 2023-07-20 07:20:13 +04:00
John Preston 6eaa192f51 Don't allow reply to changelog stories. 2023-07-20 07:20:13 +04:00
John Preston 0183790518 Improve archive / unarchive story toast. 2023-07-20 07:20:12 +04:00
John Preston 3c44cf0251 Track all sponsored messages clicks. 2023-07-20 07:20:12 +04:00
John Preston 7ad5520b82 Support external links sponsored messages. 2023-07-20 07:20:12 +04:00
John Preston 859636ff9c Show "Expired story" in the reply bar. 2023-07-20 07:20:12 +04:00
John Preston 1b581a1597 Support story link previews. 2023-07-20 07:20:12 +04:00
John Preston 22b6f27f7b Put changelog stories above premium stories. 2023-07-20 07:20:12 +04:00
John Preston e21c06f67c Support deleting and reporting stories. 2023-07-20 07:20:12 +04:00
John Preston ebafb55b1b Cache stories sources order in viewer. 2023-07-20 07:20:12 +04:00
John Preston 4e39144d0f Resolve unknown story on open. 2023-07-20 07:20:12 +04:00
John Preston 80bec508b6 Support new stories link t.me/username/s/123. 2023-07-20 07:20:12 +04:00
John Preston eb260b91c1 Improve unsupported stories design. 2023-07-20 07:20:12 +04:00
John Preston 8d2fd4bd69 Show only hidden stories in Contacts. 2023-07-20 07:20:12 +04:00
John Preston 19d0bf142c Improve empty / archived stories section. 2023-07-20 07:20:12 +04:00