From cf9398bf479f55b792fc932f1fdadfe7d1deb3c3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 6 Jun 2024 15:00:35 +0300 Subject: Discord: ability to disable database histories for a certain guild --- protocols/Discord/src/proto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Discord/src/proto.cpp') diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp index cea528e5b7..32ad2f6c01 100644 --- a/protocols/Discord/src/proto.cpp +++ b/protocols/Discord/src/proto.cpp @@ -150,8 +150,8 @@ void CDiscordProto::OnModulesLoaded() switch (getByte(hContact, "ChatRoom")) { case 2: // guild delSetting(hContact, DB_KEY_CHANNELID); - if (getDword(hContact, "EnableSync", -1) == -1) - setDword(hContact, "EnableSync", 1); + surelyGetBool(hContact, DB_KEY_ENABLE_HIST); + surelyGetBool(hContact, DB_KEY_ENABLE_SYNC); break; case 1: // group chat -- cgit v1.2.3