Prevent misusing --create-portals in sync command

This commit is contained in:
Tulir Asokan 2022-12-12 12:05:40 +02:00
parent a26cac6051
commit ee26bc6061

View file

@ -1110,6 +1110,10 @@ func fnSync(ce *WrappedCommandEvent) {
ce.Reply("`--contact-avatars` can only be used with `sync contacts`")
return
}
if createPortals && !groups {
ce.Reply("`--create-portals` can only be used with `sync groups`")
return
}
if appState {
for _, name := range appstate.AllPatchNames {