mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Removed ability to add to contacts inaccessible users.
This commit is contained in:
parent
ac6765ebdb
commit
bdee6e0155
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ rpl::producer<bool> CanShareContactValue(not_null<UserData*> user) {
|
|||
|
||||
rpl::producer<bool> CanAddContactValue(not_null<UserData*> user) {
|
||||
using namespace rpl::mappers;
|
||||
if (user->isBot() || user->isSelf()) {
|
||||
if (user->isBot() || user->isSelf() || user->isInaccessible()) {
|
||||
return rpl::single(false);
|
||||
}
|
||||
return IsContactValue(
|
||||
|
|
Loading…
Add table
Reference in a new issue