mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -06:00
Fix oops
This commit is contained in:
parent
2aa90266c2
commit
22c5646b45
|
|
@ -414,7 +414,7 @@ func (r *Inputer) processRoomEvent(
|
|||
// Handle remote room upgrades, e.g. remove published room
|
||||
if event.Type() == "m.room.tombstone" && event.StateKeyEquals("") && !r.Cfg.Matrix.IsLocalServerName(senderDomain) {
|
||||
if err = r.handleRemoteRoomUpgrade(ctx, event); err != nil {
|
||||
return fmt.Errorf("failed to handle remote room upgrade: %w")
|
||||
return fmt.Errorf("failed to handle remote room upgrade: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1406,7 +1406,7 @@ func (d *Database) UpgradeRoom(ctx context.Context, oldRoomID, newRoomID, eventS
|
|||
|
||||
for _, alias := range aliases {
|
||||
if err = d.RoomAliasesTable.DeleteRoomAlias(ctx, txn, alias); err != nil {
|
||||
fmt.Errorf("failed to remove room alias: %w", err)
|
||||
return fmt.Errorf("failed to remove room alias: %w", err)
|
||||
}
|
||||
if err = d.RoomAliasesTable.InsertRoomAlias(ctx, txn, alias, newRoomID, eventSender); err != nil {
|
||||
return fmt.Errorf("failed to set room alias: %w", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue