diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_iqid.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_iqid.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp index e04c453978..d9cd46f0c3 100755 --- a/protocols/JabberG/src/jabber_iqid.cpp +++ b/protocols/JabberG/src/jabber_iqid.cpp @@ -207,9 +207,15 @@ void CJabberProto::OnLoggedIn() setString("LastLoggedServer", m_ThreadInfo->conn.server);
m_pepServices.ResetPublishAll();
- //is it correct place ?
if (m_options.UseOMEMO)
+ {
+ if (m_PubsubServiceName) // this is required if login server is changed only
+ {
+ mir_free(m_PubsubServiceName);
+ m_PubsubServiceName = nullptr;
+ }
OmemoCreateNodes();
+ }
}
void CJabberProto::OnIqResultGetAuth(HXML iqNode, CJabberIqInfo*)
|