From 61d7b63b8aafd5315de4933ffd56db6b4c94042a Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 21 Mar 2017 17:36:58 +0300 Subject: omemo: working on 4.3 createnode fixes typo fixes --- protocols/JabberG/src/jabber_iqid.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'protocols/JabberG/src/jabber_iqid.cpp') 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*) -- cgit v1.2.3