mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Don't suggest userpic photos to bots.
This commit is contained in:
parent
a25005483a
commit
67fa4372aa
1 changed files with 1 additions and 0 deletions
|
@ -234,6 +234,7 @@ void UserpicButton::requestSuggestAvailability() {
|
|||
bool UserpicButton::canSuggestPhoto(not_null<UserData*> user) const {
|
||||
// Server allows suggesting photos only in non-empty chats.
|
||||
return !user->isSelf()
|
||||
&& !user->isBot()
|
||||
&& (user->owner().history(user)->lastServerMessage() != nullptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue