From 585c4d7595173e805523799b737bfd3044468fcd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Nov 2023 20:05:49 +0300 Subject: =?UTF-8?q?fixes=20#3975=20(Telegram:=20=D0=BD=D0=B5=D0=B2=D0=BE?= =?UTF-8?q?=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=20=D0=BF=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=BC=D0=BE=D1=82=D1=80=D0=B5=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=20=D0=B2=20=D0=BA=D0=B0=D0=BD=D0=B0=D0=BB=D0=B5,=20?= =?UTF-8?q?=D0=B3=D0=B4=D0=B5=20=D0=BA=D0=BE=D0=BF=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=BF=D1=80=D0=B5=D1=89=D0=B5=D0=BD=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/server.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols') diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index c3c9bd408c..d75b12792e 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -489,6 +489,11 @@ void CTelegramProto::ProcessChat(TD::updateNewChat *pObj) return; if (pUser->hContact != INVALID_CONTACT_ID) { + if (pChat->has_protected_content_) + setByte(pUser->hContact, "Protected", 1); + else + delSetting(pUser->hContact, "Protected"); + if (pChat->permissions_) Contact::Readonly(hContact, !pChat->permissions_->can_send_basic_messages_); -- cgit v1.2.3