summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/message.cpp')
-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));