Fix NeedsRelaybot check for groups too

This commit is contained in:
Tulir Asokan
2019-11-11 22:41:58 +02:00
parent 691d2ea1b3
commit 3caca1b9a0
3 changed files with 7 additions and 7 deletions

View File

@ -810,7 +810,7 @@ func (portal *Portal) HasRelaybot() bool {
if portal.bridge.Relaybot == nil {
return false
} else if portal.hasRelaybot == nil {
val := portal.bridge.Relaybot.IsInPortal(portal.Key.JID)
val := portal.bridge.Relaybot.IsInPortal(portal.Key)
portal.hasRelaybot = &val
}
return *portal.hasRelaybot