summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/dispatch.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-10-26 22:23:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-10-26 22:23:42 +0300
commit7ef2e7c8737905941593fd73018070934b47116b (patch)
tree29141b450529109f44cf7a7fb594f3b78b75f2eb /protocols/Discord/src/dispatch.cpp
parentf17907dd5c586022660dd27fcd6397dd22b2e365 (diff)
Discord: delayed chat creation + channel groups support
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r--protocols/Discord/src/dispatch.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index f10114c884..bca40644a2 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -90,8 +90,11 @@ void CDiscordProto::OnCommandChannelCreated(const JSONNode &pRoot)
else {
// group channel for a guild
CDiscordGuild *pGuild = FindGuild(guildId);
- if (pGuild)
- ProcessGuildChannel(pGuild, pRoot);
+ if (pGuild) {
+ CDiscordUser *pUser = ProcessGuildChannel(pGuild, pRoot);
+ if (pUser)
+ CreateChat(pGuild, pUser);
+ }
}
}