[ADD] Respect MIME, start bridging leaves/kicks

Wow, this one _wasn't_ pushed at 3AM, Outstanding.
This commit is contained in:
LDA 2024-07-07 17:30:48 +02:00
commit 43b3f8aaf5
8 changed files with 146 additions and 24 deletions

View file

@ -48,6 +48,9 @@ RouteHead(RouteRoomAck, arr, argp)
char *creator = NULL, *muc_name = NULL, *chatid = NULL;
/* TODO: If an ACK request maps to a MUC that has a chat ID,
* DO NOT create a new one, and instead make a new mapping to
* the previous one. */
response = ASVerifyRequest(args);
if (response)
{
@ -67,7 +70,6 @@ RouteHead(RouteRoomAck, arr, argp)
if (ParseeManageBan(args->data, muc, NULL))
{
HttpResponseStatus(args->ctx, HTTP_METHOD_NOT_ALLOWED);
Log(LOG_INFO, "Nofly...");
response = MatrixCreateError(
"M_NOT_FOUND",
"XMPP MUC is banned from being accessed on this instance"
@ -94,7 +96,6 @@ RouteHead(RouteRoomAck, arr, argp)
);
if (!id)
{
Log(LOG_INFO, "No ID");
HttpResponseStatus(args->ctx, HTTP_INTERNAL_SERVER_ERROR);
response = MatrixCreateError(
"M_UNKNOWN",