diff options
Diffstat (limited to 'protocols/WhatsApp/src/message.cpp')
-rw-r--r-- | protocols/WhatsApp/src/message.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/message.cpp b/protocols/WhatsApp/src/message.cpp index df272eb0b0..78567f355a 100644 --- a/protocols/WhatsApp/src/message.cpp +++ b/protocols/WhatsApp/src/message.cpp @@ -411,7 +411,7 @@ int WhatsAppProto::SendTextMessage(const char *jid, const char *pszMsg) shouldIncludeIdentity = CreateMsgParticipant(pParticipants, WAJid(T2Utf(it->pszUID)), encodedMeMsg); for (auto &it : m_arDevices) - shouldIncludeIdentity |= CreateMsgParticipant(pParticipants, it->jid, encodedMeMsg); + shouldIncludeIdentity |= CreateMsgParticipant(pParticipants, *it, encodedMeMsg); } else { Wa__Message__DeviceSentMessage sentBody; @@ -426,7 +426,7 @@ int WhatsAppProto::SendTextMessage(const char *jid, const char *pszMsg) shouldIncludeIdentity = CreateMsgParticipant(pParticipants, toJid, encodedMeMsg); for (auto &it : m_arDevices) - shouldIncludeIdentity |= CreateMsgParticipant(pParticipants, it->jid, encodedMeMsg); + shouldIncludeIdentity |= CreateMsgParticipant(pParticipants, *it, encodedMeMsg); } if (shouldIncludeIdentity) { |