diff --git a/cmd/bbctl/bridgeutil.go b/cmd/bbctl/bridgeutil.go index 0664fac..e4e8999 100644 --- a/cmd/bbctl/bridgeutil.go +++ b/cmd/bbctl/bridgeutil.go @@ -78,8 +78,12 @@ func validateBridgeName(ctx *cli.Context, bridge string) error { func guessOrAskBridgeType(bridge, bridgeType string) (string, error) { // Hack because the officialBridges map is unordered - if strings.Contains(bridge, "imessagego") && bridgeType == "" { - bridgeType = "imessagego" + if bridgeType == "" { + if strings.Contains(bridge, "imessagego") { + bridgeType = "imessagego" + } else if strings.Contains(bridge, "imessage") { + bridgeType = "imessage" + } } if bridgeType == "" { for key, value := range officialBridges {