summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/iq.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-20 12:25:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-20 12:25:18 +0300
commit56ace113cb115ae4f3bf403063aa5e811d449df9 (patch)
tree304a036795ee31fce41aaac7b2a74766bcf84f2e /protocols/WhatsApp/src/iq.cpp
parent93b7b97d6bb7c120104dff1c0b16586f8505c5a4 (diff)
unneeded code removed
Diffstat (limited to 'protocols/WhatsApp/src/iq.cpp')
-rw-r--r--protocols/WhatsApp/src/iq.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/protocols/WhatsApp/src/iq.cpp b/protocols/WhatsApp/src/iq.cpp
index dad3b59e41..61c54e4cd8 100644
--- a/protocols/WhatsApp/src/iq.cpp
+++ b/protocols/WhatsApp/src/iq.cpp
@@ -223,13 +223,6 @@ void WhatsAppProto::OnReceiveMessage(const WANode &node)
iDecryptable++;
- // remove message padding
- if (size_t len = msgBody.len()) {
- size_t c = msgBody.data()[len - 1];
- if (c < len)
- msgBody.reset(len - c);
- }
-
proto::Message encMsg;
encMsg.ParseFromArray(msgBody.data(), msgBody.len());
if (encMsg.devicesentmessage().has_message())