diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_thread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index f45e313e05..d234e46dac 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -157,7 +157,9 @@ void CJabberProto::CheckKeepAlive() if (auto *item = ListGetItemPtrFromIndex(i)) {
if (!item->bChatLogging && now - item->iChatInitTime > 2) {
item->bChatLogging = true;
- Chat_Control(m_szModuleName, Utf2T(item->jid), SESSION_ONLINE);
+ Utf2T wszJid(item->jid);
+ Chat_Control(m_szModuleName, wszJid, (item->bAutoJoin && m_bAutoJoinHidden) ? WINDOW_HIDDEN : SESSION_INITDONE);
+ Chat_Control(m_szModuleName, wszJid, SESSION_ONLINE);
}
}
}
|