summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/JabberG/src/jabber_list.cpp3
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp2
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()