mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Removed ability to set wallpaper to chat with require-premium user.
This commit is contained in:
parent
e36afc675e
commit
0c4bca312e
1 changed files with 3 additions and 0 deletions
|
@ -1200,6 +1200,9 @@ void Filler::addThemeEdit() {
|
|||
if (!user || user->isInaccessible()) {
|
||||
return;
|
||||
}
|
||||
if (user->meRequiresPremiumToWrite() && !user->session().premium()) {
|
||||
return;
|
||||
}
|
||||
const auto controller = _controller;
|
||||
_addAction(
|
||||
tr::lng_chat_theme_wallpaper(tr::now),
|
||||
|
|
Loading…
Add table
Reference in a new issue