summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQ-WIM/src/server.cpp')
-rw-r--r--protocols/ICQ-WIM/src/server.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index 8ebfd4a337..43d7369a2c 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -367,7 +367,7 @@ MCONTACT CIcqProto::ParseBuddyInfo(const JSONNode &buddy, MCONTACT hContact, boo
Json2string(hContact, buddy, "emailId", "Email", bIsPartial);
Json2string(hContact, buddy, "cellNumber", "Cellular", bIsPartial);
- Json2string(hContact, buddy, "phoneNumber", "Phone", bIsPartial);
+ Json2string(hContact, buddy, "phoneNumber", DB_KEY_PHONE, bIsPartial);
Json2string(hContact, buddy, "workNumber", "CompanyPhone", bIsPartial);
Json2int(hContact, buddy, "official", "Official", bIsPartial);
@@ -1130,6 +1130,10 @@ void CIcqProto::OnStartSession(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *)
m_fetchBaseURL = data["fetchBaseURL"].as_mstring();
m_aimsid = data["aimsid"].as_mstring();
+ CMStringW wszPhone(data["attachedPhoneNumber"].as_mstring());
+ if (!wszPhone.IsEmpty())
+ setWString(DB_KEY_PHONE, wszPhone);
+
int srvTS = data["ts"].as_int();
m_iTimeShift = (srvTS) ? time(0) - srvTS : 0;