mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Removed ability to add to contacts inaccessible users.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user