summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-05 12:25:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-05 12:25:22 +0300
commit95a9082a9a1924b7b3de3d88c92ed8095b96821c (patch)
tree5b716f4b10284e00fc89c1064fc42899b1ccfb58 /protocols/ICQ-WIM
parentda8e1056436f696340616515f384476836fffb0a (diff)
fixes #3089 (ICQ: после обновления до 0.96, асечные контакты выкидываются из ростера)
Diffstat (limited to 'protocols/ICQ-WIM')
-rw-r--r--protocols/ICQ-WIM/src/utils.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/utils.cpp b/protocols/ICQ-WIM/src/utils.cpp
index d5056ae184..c78cbd6972 100644
--- a/protocols/ICQ-WIM/src/utils.cpp
+++ b/protocols/ICQ-WIM/src/utils.cpp
@@ -42,9 +42,13 @@ void CIcqProto::InitContactCache()
}
}
- auto *pCache = new IcqCacheItem(GetUserId(it), it);
+ CMStringW wszId = GetUserId(it);
+ auto *pCache = FindContactByUIN(wszId);
+ if (pCache == nullptr) {
+ pCache = new IcqCacheItem(wszId, it);
+ m_arCache.insert(pCache);
+ }
pCache->m_iProcessedMsgId = getId(it, DB_KEY_LASTMSGID);
- m_arCache.insert(pCache);
}
}