2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Show premium stickers lock icon.

This commit is contained in:
John Preston
2022-05-20 18:57:01 +04:00
parent 5cd065ef6b
commit 853cafe195
19 changed files with 137 additions and 41 deletions

View File

@@ -218,6 +218,10 @@ rpl::producer<> Session::downloaderTaskFinished() const {
return downloader().taskFinished();
}
bool Session::premium() const {
return _user->isPremium();
}
uint64 Session::uniqueId() const {
// See also Account::willHaveSessionUniqueId.
return userId().bare