diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-20 14:38:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-20 14:38:48 +0300 |
commit | 1decc1257282aabd4165a5bce57a423896c55ca6 (patch) | |
tree | fcb51460c85a06cb25a89f974a3eafb41b101470 /protocols/WhatsApp/src/proto.cpp | |
parent | 09724196bd1ff465521864a0fe7d64e3b5450065 (diff) |
fixes #3218 (Dummy: fix WhatsApp ID)
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 8 |
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()) { } } |