summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2023-11-24 12:11:03 +0500
committerElzorFox <elzorfox@ya.ru>2023-11-24 12:11:03 +0500
commit3b04426eafa69722f2ef95eca031b15c3b462346 (patch)
tree977ba7a0b00a58ac034a5771dabd9306db9ff990
parentb10c1892789a4de5b8615b8d54394d5ee9cd6ca3 (diff)
VKontakte: code cleaning
-rw-r--r--protocols/VKontakte/src/vk_messages.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp
index 14a7027d4c..46a30b070c 100644
--- a/protocols/VKontakte/src/vk_messages.cpp
+++ b/protocols/VKontakte/src/vk_messages.cpp
@@ -489,8 +489,6 @@ void CVkProto::OnReceiveDlgs(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
MarkMessagesRead(hContact);
}
- const JSONNode& jnCanWrite = jnConversation["can_write"];
-
if (jnConversation["can_write"] && jnConversation["can_write"]["allowed"])
Contact::Readonly(hContact, !jnConversation["can_write"]["allowed"].as_bool());