mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-15 01:43:55 +01:00
Always set invite_room_state else synapse rejects invites
This commit is contained in:
parent
4cf7c08146
commit
8ee4c0f71e
1 changed files with 6 additions and 0 deletions
|
@ -171,6 +171,12 @@ func (r *RoomserverInternalAPI) processInviteEvent(
|
||||||
if err = event.SetUnsignedField("invite_room_state", irs); err != nil {
|
if err = event.SetUnsignedField("invite_room_state", irs); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log.WithError(ierr).Error("failed to build invite stripped state")
|
||||||
|
// still set the field else synapse deployments don't process the invite
|
||||||
|
if err = event.SetUnsignedField("invite_room_state", struct{}{}); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue