diff options
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 80c25d9b95..9baa1fe26c 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -487,8 +487,13 @@ void CTelegramProto::ProcessChat(TD::updateNewChat *pObj) if (CheckSearchUser(pUser))
return;
- if (pUser->isGroupChat && pUser->hContact != INVALID_CONTACT_ID)
- InitGroupChat(pUser, pChat);
+ if (pUser->hContact != INVALID_CONTACT_ID) {
+ if (pChat->permissions_)
+ Contact::Readonly(hContact, !pChat->permissions_->can_send_basic_messages_);
+
+ if (pUser->isGroupChat)
+ InitGroupChat(pUser, pChat);
+ }
}
else debugLogA("Unknown user id %lld, ignoring", userId);
}
|