mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/logout: fix has receiver check
This commit is contained in:
parent
8c0f705ee9
commit
eb84187368
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue