mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Move poll results to a Info-like layer.
This commit is contained in:
@@ -100,6 +100,13 @@ void SessionNavigation::showSettings(const SectionShow ¶ms) {
|
||||
showSettings(Settings::Type::Main, params);
|
||||
}
|
||||
|
||||
void SessionNavigation::showPollResults(
|
||||
not_null<PollData*> poll,
|
||||
FullMsgId contextId,
|
||||
const SectionShow ¶ms) {
|
||||
showSection(Info::Memento(poll, contextId), params);
|
||||
}
|
||||
|
||||
SessionController::SessionController(
|
||||
not_null<Main::Session*> session,
|
||||
not_null<Controller*> window)
|
||||
|
@@ -148,6 +148,11 @@ public:
|
||||
const SectionShow ¶ms = SectionShow());
|
||||
void showSettings(const SectionShow ¶ms = SectionShow());
|
||||
|
||||
void showPollResults(
|
||||
not_null<PollData*> poll,
|
||||
FullMsgId contextId,
|
||||
const SectionShow ¶ms = SectionShow());
|
||||
|
||||
virtual ~SessionNavigation() = default;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user