2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Improve story source context menus.

This commit is contained in:
John Preston
2023-06-30 12:48:42 +04:00
parent 074a4e3c92
commit 6c960243a9
16 changed files with 99 additions and 82 deletions

View File

@@ -347,17 +347,9 @@ InnerWidget::InnerWidget(
Data::StorySourcesList::NotHidden);
}, lifetime());
_stories->showProfileRequests(
) | rpl::start_with_next([=](uint64 id) {
_controller->showPeerInfo(PeerId(int64(id)));
}, lifetime());
_stories->toggleShown(
) | rpl::start_with_next([=](Stories::ToggleShownRequest request) {
session().data().stories().toggleHidden(
PeerId(int64(request.id)),
!request.shown,
_controller->uiShow());
_stories->showMenuRequests(
) | rpl::start_with_next([=](const Stories::ShowMenuRequest &request) {
FillSourceMenu(_controller, request);
}, lifetime());
_stories->loadMoreRequests(