summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-24 13:51:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-24 13:51:08 +0300
commit9a954e241f05fa7ca751a122ddcada7b701fe185 (patch)
tree71198463b6a2c67bf85e1e44a63021c8d65c57fb /protocols
parent71e5d084b56798711a93e8018b925dafaa724ef9 (diff)
oops
Diffstat (limited to 'protocols')
-rw-r--r--protocols/WhatsApp/src/message.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/message.cpp b/protocols/WhatsApp/src/message.cpp
index 5c0504d4b5..3e1aa26eaa 100644
--- a/protocols/WhatsApp/src/message.cpp
+++ b/protocols/WhatsApp/src/message.cpp
@@ -350,9 +350,9 @@ int WhatsAppProto::SendTextMessage(const char *jid, const char *pszMsg)
payLoad << CHAR_PARAM("id", szMsgId) << CHAR_PARAM("type", "text") << CHAR_PARAM("to", jid);
auto *pParticipants = payLoad.addChild("participants");
- bool shouldIncludeIdentity = CreateMsgParticipant(pParticipants, WAJid(jid), false);
+ bool shouldIncludeIdentity = CreateMsgParticipant(pParticipants, WAJid(jid), encMsg);
for (auto &it : m_arDevices)
- shouldIncludeIdentity |= CreateMsgParticipant(pParticipants, it->jid, true);
+ shouldIncludeIdentity |= CreateMsgParticipant(pParticipants, it->jid, encMsg);
if (shouldIncludeIdentity) {
MBinBuffer encIdentity(m_signalStore.encodeSignedIdentity(true));