bridgev2/logout: fix has receiver check
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run

This commit is contained in:
Tulir Asokan 2024-08-09 16:53:20 +03:00
commit eb84187368

View file

@ -437,7 +437,7 @@ func (ul *UserLogin) getLogoutAction(ctx context.Context, up *database.UserPorta
if badCredentials {
actionsSet = ul.Bridge.Config.CleanupOnLogout.BadCredentials
}
if portal.Receiver == "" {
if portal.Receiver != "" {
return portal, actionsSet.Private, "portal has receiver", nil
}
otherUPs, err := ul.Bridge.DB.UserPortal.GetAllInPortal(ctx, portal.PortalKey)