mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +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.
|
||||
var joinEvent *gomatrixserverlib.Event
|
||||
for _, stateEvent := range respState.StateEvents {
|
||||
if stateEvent.EventID() == event.EventID() {
|
||||
if stateEvent.Type() != gomatrixserverlib.MRoomMember {
|
||||
continue
|
||||
}
|
||||
if stateEvent.StateKeyEquals(*event.StateKey()) {
|
||||
joinEvent = event
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue