summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/guilds.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-06-06 15:00:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-06-06 15:00:35 +0300
commitcf9398bf479f55b792fc932f1fdadfe7d1deb3c3 (patch)
tree18d7fd7fee1ef8642d2b09b7b82e05043cd58ac5 /protocols/Discord/src/guilds.cpp
parent9c960060136f193ff4f336adcd2c4fac7b604547 (diff)
Discord: ability to disable database histories for a certain guild
Diffstat (limited to 'protocols/Discord/src/guilds.cpp')
-rw-r--r--protocols/Discord/src/guilds.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp
index 0972518154..35b1cd18fc 100644
--- a/protocols/Discord/src/guilds.cpp
+++ b/protocols/Discord/src/guilds.cpp
@@ -138,6 +138,7 @@ void CDiscordProto::ProcessGuild(const JSONNode &pRoot)
pGuild->pParentSi = (SESSION_INFO*)si;
pGuild->m_hContact = si->hContact;
setId(pGuild->m_hContact, DB_KEY_CHANNELID, guildId);
+ pGuild->m_bEnableHistory = surelyGetBool(pGuild->m_hContact, DB_KEY_ENABLE_HIST);
Chat_Control(si, WINDOW_HIDDEN);
Chat_Control(si, SESSION_ONLINE);
@@ -147,7 +148,7 @@ void CDiscordProto::ProcessGuild(const JSONNode &pRoot)
BuildStatusList(pGuild, si);
- if (!pGuild->m_bSynced && getByte(si->hContact, "EnableSync"))
+ if (!pGuild->m_bSynced && getByte(si->hContact, DB_KEY_ENABLE_SYNC))
GatewaySendGuildInfo(pGuild);
// store all guild members