diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-31 17:47:17 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-31 17:47:17 +0300 |
commit | 3f126f88e0fce515384655bfdf382b653fc5f159 (patch) | |
tree | 2b114f316a4618bb0c2f5f4b0795c92198f5bae1 /protocols | |
parent | e36e6e33366c9edc334c1401561f299f0d02f7c9 (diff) |
fixes #4314 (Jabber: duplicate contacts in roster)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/JabberG/src/jabber_list.cpp | 3 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_proto.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_list.cpp b/protocols/JabberG/src/jabber_list.cpp index ad4c905a66..7c2292106e 100644 --- a/protocols/JabberG/src/jabber_list.cpp +++ b/protocols/JabberG/src/jabber_list.cpp @@ -88,6 +88,9 @@ void JABBER_RESOURCE_STATUS::Release() void CJabberProto::ListInit(void)
{
+ if (m_lstRoster.getCount())
+ return;
+
for (auto &hContact : AccContacts()) {
ptrA jid(ContactToJID(hContact));
if (jid != nullptr)
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 40dcd35e69..0f038b9344 100644 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -239,6 +239,8 @@ CJabberProto::CJabberProto(const char *aProtoName, const wchar_t *aUserName) : m_tszSelectedLang = mir_strdup("en");
g_plugin.addPopupOption(CMStringW(FORMAT, TranslateT("%s error notifications"), m_tszUserName), m_bUsePopups);
+
+ ListInit();
}
CJabberProto::~CJabberProto()
|