From 95a9082a9a1924b7b3de3d88c92ed8095b96821c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 5 Jun 2022 12:25:22 +0300 Subject: =?UTF-8?q?fixes=20#3089=20(ICQ:=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5?= =?UTF-8?q?=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B4=D0=BE=200.96,=20=D0=B0=D1=81=D0=B5=D1=87=D0=BD=D1=8B?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B0=D0=BA=D1=82=D1=8B=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=BA=D0=B8=D0=B4=D1=8B=D0=B2=D0=B0=D1=8E=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=B8=D0=B7=20=D1=80=D0=BE=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D1=80=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/ICQ-WIM/src/utils.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'protocols/ICQ-WIM') 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); } } -- cgit v1.2.3