Skip to content
Snippets Groups Projects
Commit 7670be4c authored by Sébastien Blin's avatar Sébastien Blin
Browse files

account_config: fix defaultModerators serialization

when unserialized, the default moderators is always empty

Change-Id: Ie23af56bfcae7de2895ea242df10cc0f926b659e
parent e8b1209b
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,8 @@ AccountConfig::serializeDiff(YAML::Emitter& out, const AccountConfig& DEFAULT_CO
SERIALIZE_CONFIG(USER_AGENT_KEY, customUserAgent);
SERIALIZE_CONFIG(DISPLAY_NAME_KEY, displayName);
SERIALIZE_CONFIG(UPNP_ENABLED_KEY, upnpEnabled);
SERIALIZE_CONFIG(DEFAULT_MODERATORS_KEY, defaultModerators);
out << YAML::Key << DEFAULT_MODERATORS_KEY << YAML::Value
<< fmt::format(FMT_COMPILE("{}"), fmt::join(defaultModerators, "/"sv));
SERIALIZE_CONFIG(LOCAL_MODERATORS_ENABLED_KEY, localModeratorsEnabled);
SERIALIZE_CONFIG(ALL_MODERATORS_ENABLED_KEY, allModeratorsEnabled);
SERIALIZE_CONFIG(PROXY_PUSH_TOKEN_KEY, deviceKey);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment