core: fix /_groups command (#6660)

* core: fix `/_groups` command

add missing space after `/_groups`. fixes #5195

* remove space in CLI commands (they would break parser)

---------

Co-authored-by: Evgeny <evgeny@poberezkin.com>
This commit is contained in:
Ed Asriyan
2026-03-19 02:08:14 -07:00
committed by GitHub
parent f0799ef2a5
commit b8178d01a8
+1 -1
View File
@@ -4526,7 +4526,7 @@ chatCommandP =
"/clear " *> char_ '@' *> (ClearContact <$> displayNameP),
("/members " <|> "/ms ") *> char_ '#' *> (ListMembers <$> displayNameP),
"/member support chats #" *> (ListMemberSupportChats <$> displayNameP),
"/_groups" *> (APIListGroups <$> A.decimal <*> optional (" @" *> A.decimal) <*> optional (A.space *> textP)),
"/_groups " *> (APIListGroups <$> A.decimal <*> optional (" @" *> A.decimal) <*> optional (A.space *> textP)),
("/groups" <|> "/gs") *> (ListGroups <$> optional (" @" *> displayNameP) <*> optional (A.space *> textP)),
"/_group_profile #" *> (APIUpdateGroupProfile <$> A.decimal <* A.space <*> jsonP),
("/group_profile " <|> "/gp ") *> char_ '#' *> (UpdateGroupNames <$> displayNameP <* A.space <*> groupProfile),