Update API scheme on layer 217.

This commit is contained in:
John Preston
2025-10-27 12:29:09 +04:00
parent a1565c7fff
commit 491ad744ea
17 changed files with 192 additions and 94 deletions
+9
View File
@@ -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);