mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 01:08:02 +00:00
Update API scheme on layer 217.
This commit is contained in:
@@ -1984,6 +1984,15 @@ bool PeerData::hasUnreadStories() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::hasActiveVideoStream() const {
|
||||
if (const auto user = asUser()) {
|
||||
return user->hasActiveVideoStream();
|
||||
} else if (const auto channel = asChannel()) {
|
||||
return channel->hasActiveVideoStream();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void PeerData::setStoriesState(StoriesState state) {
|
||||
if (const auto user = asUser()) {
|
||||
return user->setStoriesState(state);
|
||||
|
||||
Reference in New Issue
Block a user