mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Fix state key invite membership events not being correctly set
This commit is contained in:
parent
85268ff02a
commit
1be6290e62
|
|
@ -106,7 +106,7 @@ func SendMembership(
|
||||||
func getMembershipStateKey(
|
func getMembershipStateKey(
|
||||||
req *http.Request, device *authtypes.Device, membership string,
|
req *http.Request, device *authtypes.Device, membership string,
|
||||||
) (stateKey string, reason string, response *util.JSONResponse) {
|
) (stateKey string, reason string, response *util.JSONResponse) {
|
||||||
if membership == "ban" || membership == "unban" || membership == "kick" {
|
if membership == "ban" || membership == "unban" || membership == "kick" || membership == "invite" {
|
||||||
// If we're in this case, the state key is contained in the request body,
|
// If we're in this case, the state key is contained in the request body,
|
||||||
// possibly along with a reason (for "kick" and "ban") so we need to parse
|
// possibly along with a reason (for "kick" and "ban") so we need to parse
|
||||||
// it
|
// it
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue