core: fix settings api (#952)

This commit is contained in:
Evgeny Poberezkin
2022-08-19 22:44:00 +01:00
committed by GitHub
parent f561698fb9
commit d26083d8b7
+1 -1
View File
@@ -2597,7 +2597,7 @@ chatCommandP =
"/_network " *> (APISetNetworkConfig <$> jsonP),
("/network " <|> "/net ") *> (APISetNetworkConfig <$> netCfgP),
("/network" <|> "/net") $> APIGetNetworkConfig,
"/_settings" *> (APISetChatSettings <$> chatRefP <* A.space <*> jsonP),
"/_settings " *> (APISetChatSettings <$> chatRefP <* A.space <*> jsonP),
"/_info #" *> (APIGroupMemberInfo <$> A.decimal <* A.space <*> A.decimal),
"/_info @" *> (APIContactInfo <$> A.decimal),
("/info #" <|> "/i #") *> (GroupMemberInfo <$> displayName <* A.space <* optional (A.char '@') <*> displayName),