diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-29 15:34:37 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-29 15:34:37 +0000 |
commit | 25a7a059a20f51e6df201ba606e38c4aef45e8f0 (patch) | |
tree | 4bd42c4bc7cbd7b45d7db633d0e9aa8a42595e97 /protocols/WhatsApp/src/contacts.cpp | |
parent | ddb498e9d73f3cba46791983ecece2371796f29b (diff) |
- receipts for offline messages
- slightly enilghtened login procedure
- WHATSAPP_KEY_PUSH_NAME removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11950 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/contacts.cpp')
-rw-r--r-- | protocols/WhatsApp/src/contacts.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/WhatsApp/src/contacts.cpp b/protocols/WhatsApp/src/contacts.cpp index 33b289c098..0250420ed2 100644 --- a/protocols/WhatsApp/src/contacts.cpp +++ b/protocols/WhatsApp/src/contacts.cpp @@ -22,13 +22,13 @@ MCONTACT WhatsAppProto::AddToContactList(const std::string& jid, BYTE , bool don if (new_name != NULL) {
DBVARIANT dbv;
string oldName;
- if (db_get_utf(hContact, m_szModuleName, WHATSAPP_KEY_PUSH_NAME, &dbv))
+ if (db_get_utf(hContact, m_szModuleName, WHATSAPP_KEY_NICK, &dbv))
oldName = jid.c_str();
else {
oldName = dbv.pszVal;
db_free(&dbv);
}
- db_set_utf(hContact, m_szModuleName, WHATSAPP_KEY_PUSH_NAME, new_name);
+ db_set_utf(hContact, m_szModuleName, WHATSAPP_KEY_NICK, new_name);
if (oldName.compare(string(new_name)) != 0) {
CMString tmp(FORMAT, TranslateT("is now known as '%s'"), ptrT(mir_utf8decodeT(new_name)));
@@ -60,7 +60,7 @@ MCONTACT WhatsAppProto::AddToContactList(const std::string& jid, BYTE , bool don db_set_ts(hContact, "CList", "Group", tszGroup);
if (new_name != NULL)
- db_set_utf(hContact, m_szModuleName, WHATSAPP_KEY_PUSH_NAME, new_name);
+ db_set_utf(hContact, m_szModuleName, WHATSAPP_KEY_NICK, new_name);
if (isChatRoom)
setByte(hContact, "SimpleChatRoom", 1);
@@ -497,7 +497,7 @@ INT_PTR __cdecl WhatsAppProto::OnChangeGroupSubject(WPARAM hContact, LPARAM lPar input_box* ib = new input_box;
DBVARIANT dbv;
- if (getTString(hContact, WHATSAPP_KEY_PUSH_NAME, &dbv))
+ if (getTString(hContact, WHATSAPP_KEY_NICK, &dbv))
ib->defaultValue = _T("");
else {
ib->defaultValue = dbv.ptszVal;
|