[FIX] Leaves now actually do matter on Matrix

This commit is contained in:
LDA 2024-09-07 18:37:45 +02:00
commit 53739dd42d
4 changed files with 46 additions and 1 deletions

View file

@ -192,6 +192,7 @@ end_error:
/* TODO: CLEAN THAT UP INTO A CREATEDM FUNCTION */
mroom_id = ParseeGetBridgedRoom(args, stanza);
Log(LOG_DEBUG, "Bridging to '%s'", mroom_id);
if (!mroom_id && !room && !XMPPIsParseeStanza(stanza) &&
to && *to == '@')
{
@ -202,6 +203,7 @@ end_error:
ASRegisterUser(args->config, from_matrix);
room = ASCreateDM(args->config, from_matrix, to);
mroom_id = StrDuplicate(room);
Log(LOG_INFO, "Creating a DM to '%s'(%s)", to, mroom_id);
if (room)
{
room_ref = DbCreate(args->db, 3, "rooms", room, "data");