diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-06 20:34:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-06 20:34:51 +0300 |
commit | e855b0922f15871e8deb07562f3d5c8ba675bf93 (patch) | |
tree | 1f0dc19f024964595c1c53d1d8ef3d33cdd6c47f /protocols/Discord/src/proto.cpp | |
parent | 85a007ed346d57d266dca3f6c6b2809ca8d61c97 (diff) |
related to #1863 ([Discord] Make option to turn off group chats/channels ; & add manual history sync from IMs/DMs (private chat))
Diffstat (limited to 'protocols/Discord/src/proto.cpp')
-rw-r--r-- | protocols/Discord/src/proto.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp index b01d48ce58..e20cdb18ca 100644 --- a/protocols/Discord/src/proto.cpp +++ b/protocols/Discord/src/proto.cpp @@ -110,6 +110,11 @@ void CDiscordProto::OnModulesLoaded() pNew->wszUsername = ptrW(getWStringA(hContact, DB_KEY_NICK)); pNew->iDiscriminator = getDword(hContact, DB_KEY_DISCR); arUsers.insert(pNew); + + // set EnableSync = 1 by default for all existing guilds + if (getByte(hContact, "ChatRoom") == 2) + if (getDword(hContact, "EnableSync", -1) == -1) + setDword(hContact, "EnableSync", 1); } GCREGISTER gcr = {}; |