summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/guilds.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-27 19:29:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-27 19:29:19 +0300
commit0779b188d44b7795f4482c7066a064a38d7c130a (patch)
tree59c150d9d06b715f694b3373af6090c47ae2b32e /protocols/Discord/src/guilds.cpp
parent70df70d9bf061fd42523357bc8a34bf4323da964 (diff)
Discord: option to hide guild chats on startup
Diffstat (limited to 'protocols/Discord/src/guilds.cpp')
-rw-r--r--protocols/Discord/src/guilds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp
index 8b8f250835..52c1f290ed 100644
--- a/protocols/Discord/src/guilds.cpp
+++ b/protocols/Discord/src/guilds.cpp
@@ -107,7 +107,7 @@ CDiscordUser* CDiscordProto::ProcessGuildChannel(CDiscordGuild *pGuild, const JS
GCSessionInfoBase *si = Chat_NewSession(GCW_CHATROOM, m_szModuleName, wszChannelId, wszChannelName);
BuildStatusList(pGuild, wszChannelId);
- Chat_Control(m_szModuleName, wszChannelId, WINDOW_HIDDEN);
+ Chat_Control(m_szModuleName, wszChannelId, m_bHideGroupchats ? WINDOW_HIDDEN : SESSION_INITDONE);
Chat_Control(m_szModuleName, wszChannelId, SESSION_ONLINE);
if (!wszTopic.IsEmpty()) {