From 90cd11d8506828c5fe10c524973d9429ca0d12c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6sters?= Date: Sat, 22 May 2021 18:49:30 +0200 Subject: [PATCH] fix: Forbidden instead of InvalidParam when joining --- src/client_server/membership.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client_server/membership.rs b/src/client_server/membership.rs index 75d7258c..206ea9d6 100644 --- a/src/client_server/membership.rs +++ b/src/client_server/membership.rs @@ -839,7 +839,7 @@ pub async fn invite_helper( if !auth_check { return Err(Error::BadRequest( - ErrorKind::InvalidParam, + ErrorKind::Forbidden, "Event is not authorized.", )); }