summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-20 14:38:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-20 14:38:48 +0300
commit1decc1257282aabd4165a5bce57a423896c55ca6 (patch)
treefcb51460c85a06cb25a89f974a3eafb41b101470 /protocols/WhatsApp/src/proto.cpp
parent09724196bd1ff465521864a0fe7d64e3b5450065 (diff)
fixes #3218 (Dummy: fix WhatsApp ID)
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r--protocols/WhatsApp/src/proto.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index 0b6fab3b19..e04c2b253f 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -36,7 +36,7 @@ WhatsAppProto::WhatsAppProto(const char *proto_name, const wchar_t *username) :
PROTO<WhatsAppProto>(proto_name, username),
m_impl(*this),
m_signalStore(this, ""),
- m_szJid(getMStringA(DBKEY_JID)),
+ m_szJid(getMStringA(DBKEY_ID)),
m_tszDefaultGroup(getWStringA(DBKEY_DEF_GROUP)),
m_arUsers(10, CompareUsers),
m_arDevices(1),
@@ -111,7 +111,7 @@ void WhatsAppProto::OnModulesLoaded()
for (auto &cc : AccContacts()) {
bool bIsChat = isChatRoom(cc);
- CMStringA szId(getMStringA(cc, bIsChat ? "ChatRoomID" : DBKEY_JID));
+ CMStringA szId(getMStringA(cc, bIsChat ? "ChatRoomID" : DBKEY_ID));
if (!szId.IsEmpty())
m_arUsers.insert(new WAUser(cc, szId, bIsChat));
}
@@ -230,7 +230,7 @@ void WhatsAppProto::OnSendMessage(const JSONNode &node, void*)
int WhatsAppProto::SendMsg(MCONTACT hContact, int, const char *pszMsg)
{
- ptrA jid(getStringA(hContact, DBKEY_JID));
+ ptrA jid(getStringA(hContact, DBKEY_ID));
if (jid == nullptr || pszMsg == nullptr)
return 0;
@@ -272,7 +272,7 @@ int WhatsAppProto::SendMsg(MCONTACT hContact, int, const char *pszMsg)
int WhatsAppProto::UserIsTyping(MCONTACT hContact, int)
{
if (hContact && isOnline()) {
- ptrA jid(getStringA(hContact, DBKEY_JID));
+ ptrA jid(getStringA(hContact, DBKEY_ID));
if (jid && isOnline()) {
}
}