diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-20 12:25:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-20 12:25:18 +0300 |
commit | 56ace113cb115ae4f3bf403063aa5e811d449df9 (patch) | |
tree | 304a036795ee31fce41aaac7b2a74766bcf84f2e /protocols/WhatsApp/src/iq.cpp | |
parent | 93b7b97d6bb7c120104dff1c0b16586f8505c5a4 (diff) |
unneeded code removed
Diffstat (limited to 'protocols/WhatsApp/src/iq.cpp')
-rw-r--r-- | protocols/WhatsApp/src/iq.cpp | 7 |
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()) |