mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 06:12:45 +00:00
Push fixes
This commit is contained in:
parent
623b61b3c2
commit
19ee1a4f38
2 changed files with 7 additions and 3 deletions
|
@ -577,12 +577,14 @@ func SendJoin(
|
|||
// the response in situ.
|
||||
replaced := false
|
||||
for i := range stateAndAuthChainResponse.StateEvents {
|
||||
event := stateAndAuthChainResponse.StateEvents[i]
|
||||
stateEvent := stateAndAuthChainResponse.StateEvents[i]
|
||||
if event.Type() != gomatrixserverlib.MRoomMember {
|
||||
continue
|
||||
}
|
||||
if event.StateKeyEquals(*event.StateKey()) {
|
||||
stateAndAuthChainResponse.StateEvents[i] = event
|
||||
if stateEvent.StateKeyEquals(*event.StateKey()) {
|
||||
stateAndAuthChainResponse.StateEvents[i] = event.Headered(
|
||||
stateAndAuthChainResponse.RoomVersion,
|
||||
)
|
||||
replaced = true
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue