summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-09-08 09:08:21 -0700
committerGeorge Hazan <ghazan@miranda.im>2022-09-08 09:08:21 -0700
commit86de5077ada7c09758319f248ec12b69d55f7d28 (patch)
tree9e3704a37eae87090f7a869a8c1c572a3977943f /protocols/ICQ-WIM/src
parent2a6ee285a45385949bc9b0b88f646380af952e10 (diff)
patch against occasional phone number wiping
Diffstat (limited to 'protocols/ICQ-WIM/src')
-rw-r--r--protocols/ICQ-WIM/src/server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index c77070156d..db7f034934 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -367,9 +367,11 @@ 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", DB_KEY_PHONE, bIsPartial);
Json2string(hContact, buddy, "workNumber", "CompanyPhone", bIsPartial);
+ // we shall not remove existing phone number anyhow
+ Json2string(hContact, buddy, "phoneNumber", DB_KEY_PHONE, true);
+
Json2int(hContact, buddy, "official", "Official", bIsPartial);
Json2int(hContact, buddy, "onlineTime", DB_KEY_ONLINETS, bIsPartial);
Json2int(hContact, buddy, "idleTime", "IdleTS", bIsPartial);