mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 00:39:55 +00:00
Added ability to create statistics info layer with story id.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user