We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35f734f commit 226d208Copy full SHA for 226d208
stateresolutionv2.go
@@ -84,6 +84,17 @@ func ResolveStateConflictsV2(
84
panic(err)
85
}
86
87
+ if len(authEvents) > 0 {
88
+ roomID, err = spec.NewRoomID(authEvents[0].RoomID())
89
+ if err != nil {
90
+ panic(err)
91
+ }
92
93
+ // If we still don't have a roomID, we don't have conflicted, unconflicted
94
+ // or any authEvents, which in theory shouldn't happen.
95
+ if roomID == nil {
96
+ return r.result
97
98
99
r.allower = newAllowerContext(&r.authProvider, userIDForSender, *roomID)
100
0 commit comments