mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-22 14:23:09 -06:00
oops send state key to GetMembership
This commit is contained in:
parent
8952c5a065
commit
9dcc67122a
|
|
@ -57,7 +57,7 @@ func (r *RoomserverInternalAPI) PerformInvite(
|
|||
var isAlreadyJoined bool
|
||||
roomNID, err := r.DB.RoomNID(ctx, roomID)
|
||||
if err == nil {
|
||||
_, isAlreadyJoined, _ = r.DB.GetMembership(ctx, roomNID, "")
|
||||
_, isAlreadyJoined, _ = r.DB.GetMembership(ctx, roomNID, *event.StateKey())
|
||||
}
|
||||
if isAlreadyJoined {
|
||||
// If the user is joined to the room then that takes precedence over this
|
||||
|
|
|
|||
Loading…
Reference in a new issue