From 9a954e241f05fa7ca751a122ddcada7b701fe185 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Oct 2022 13:51:08 +0300 Subject: oops --- protocols/WhatsApp/src/message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') 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)); -- cgit v1.2.3