mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Try to match by type/state key tuple rather than event ID
This commit is contained in:
parent
19ee1a4f38
commit
9c4bfba01b
1 changed files with 4 additions and 1 deletions
|
@ -262,7 +262,10 @@ func (r *FederationSenderInternalAPI) performJoinUsingServer(
|
||||||
// Find the membership event.
|
// Find the membership event.
|
||||||
var joinEvent *gomatrixserverlib.Event
|
var joinEvent *gomatrixserverlib.Event
|
||||||
for _, stateEvent := range respState.StateEvents {
|
for _, stateEvent := range respState.StateEvents {
|
||||||
if stateEvent.EventID() == event.EventID() {
|
if stateEvent.Type() != gomatrixserverlib.MRoomMember {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if stateEvent.StateKeyEquals(*event.StateKey()) {
|
||||||
joinEvent = event
|
joinEvent = event
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue