mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 05:13:11 -06:00
Remove redundant check for overwrite
This commit is contained in:
parent
ba32881fa4
commit
cd9cc69807
|
|
@ -345,12 +345,7 @@ func (u *latestEventsUpdater) makeOutputNewRoomEvent() (*api.OutputEvent, error)
|
|||
for _, entry := range u.stateBeforeEventAdds {
|
||||
ore.StateBeforeAddsEventIDs = append(ore.StateBeforeAddsEventIDs, eventIDMap[entry.EventNID])
|
||||
}
|
||||
// If we are overwriting the latest events and state then we don't
|
||||
// want to send out any changes that happened as a result to servers
|
||||
// over federation.
|
||||
if !u.stateAtEvent.Overwrite {
|
||||
ore.SendAsServer = u.sendAsServer
|
||||
}
|
||||
ore.SendAsServer = u.sendAsServer
|
||||
|
||||
return &api.OutputEvent{
|
||||
Type: api.OutputTypeNewRoomEvent,
|
||||
|
|
|
|||
Loading…
Reference in a new issue