mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -06:00
Change precedence
This commit is contained in:
parent
5abb0fd369
commit
52aa054db0
|
|
@ -82,7 +82,9 @@ func (d *Database) UpdateRoom(
|
|||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if err = d.FederationJoinedHosts.DeleteJoinedHosts(ctx, txn, removeHosts); err != nil {
|
||||
return err
|
||||
}
|
||||
for _, add := range addHosts {
|
||||
err = d.FederationJoinedHosts.InsertJoinedHosts(ctx, txn, roomID, add.MemberEventID, add.ServerName)
|
||||
if err != nil {
|
||||
|
|
@ -90,9 +92,6 @@ func (d *Database) UpdateRoom(
|
|||
}
|
||||
joinedHosts = append(joinedHosts, add)
|
||||
}
|
||||
if err = d.FederationJoinedHosts.DeleteJoinedHosts(ctx, txn, removeHosts); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
})
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue