mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Partially implement viewing channel gifts.
This commit is contained in:
@@ -1532,6 +1532,15 @@ void PeerData::setStoriesState(StoriesState state) {
|
||||
}
|
||||
}
|
||||
|
||||
int PeerData::peerGiftsCount() const {
|
||||
if (const auto user = asUser()) {
|
||||
return user->peerGiftsCount();
|
||||
} else if (const auto channel = asChannel()) {
|
||||
return channel->peerGiftsCount();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void PeerData::setIsBlocked(bool is) {
|
||||
const auto status = is
|
||||
? BlockStatus::Blocked
|
||||
|
Reference in New Issue
Block a user