mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Return early if there are no invites to remove
This commit is contained in:
parent
565854d3a7
commit
2375a13af4
@ -77,6 +77,10 @@ func (t *InvitesTable) RemoveSupersededInvites(txn *sqlx.Tx, roomID string, newE
|
||||
}
|
||||
}
|
||||
|
||||
if len(usersToRemove) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
_, err := txn.Exec(`
|
||||
DELETE FROM syncv3_invites
|
||||
WHERE user_id = ANY($1) AND room_id = $2
|
||||
|
Loading…
x
Reference in New Issue
Block a user