Added ability to create statistics info layer with story id.

This commit is contained in:
23rd
2023-11-17 04:59:20 +03:00
committed by John Preston
parent f88eee8047
commit 34d0dac351
11 changed files with 62 additions and 42 deletions
@@ -106,6 +106,13 @@ FullMsgId Key::statisticsContextId() const {
return {};
}
FullStoryId Key::statisticsStoryId() const {
if (const auto tag = std::get_if<Statistics::Tag>(&_value)) {
return tag->storyId;
}
return {};
}
PollData *Key::poll() const {
if (const auto data = std::get_if<PollKey>(&_value)) {
return data->poll;