forked from MirrorHub/mautrix-whatsapp
Prevent misusing --create-portals in sync command
This commit is contained in:
parent
a26cac6051
commit
ee26bc6061
1 changed files with 4 additions and 0 deletions
|
@ -1110,6 +1110,10 @@ func fnSync(ce *WrappedCommandEvent) {
|
||||||
ce.Reply("`--contact-avatars` can only be used with `sync contacts`")
|
ce.Reply("`--contact-avatars` can only be used with `sync contacts`")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if createPortals && !groups {
|
||||||
|
ce.Reply("`--create-portals` can only be used with `sync groups`")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if appState {
|
if appState {
|
||||||
for _, name := range appstate.AllPatchNames {
|
for _, name := range appstate.AllPatchNames {
|
||||||
|
|
Loading…
Add table
Reference in a new issue