mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-25 07:43:10 -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
|
var isAlreadyJoined bool
|
||||||
roomNID, err := r.DB.RoomNID(ctx, roomID)
|
roomNID, err := r.DB.RoomNID(ctx, roomID)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
_, isAlreadyJoined, _ = r.DB.GetMembership(ctx, roomNID, "")
|
_, isAlreadyJoined, _ = r.DB.GetMembership(ctx, roomNID, *event.StateKey())
|
||||||
}
|
}
|
||||||
if isAlreadyJoined {
|
if isAlreadyJoined {
|
||||||
// If the user is joined to the room then that takes precedence over this
|
// If the user is joined to the room then that takes precedence over this
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue