mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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()) {
|
if (!user || user->isInaccessible()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (user->meRequiresPremiumToWrite() && !user->session().premium()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const auto controller = _controller;
|
const auto controller = _controller;
|
||||||
_addAction(
|
_addAction(
|
||||||
tr::lng_chat_theme_wallpaper(tr::now),
|
tr::lng_chat_theme_wallpaper(tr::now),
|
||||||
|
|
Loading…
Add table
Reference in a new issue