[FIX] Broken-ass replies

This commit is contained in:
LDA 2024-09-06 07:43:19 +02:00
commit ad7f4f20e1
2 changed files with 20 additions and 17 deletions

View file

@ -288,21 +288,24 @@ end_error:
if (oob_data)
{
mxc = ASReupload(args->config, oob_data->data, &mime);
content = MatrixCreateMedia(mxc, data->data, mime);
if (mxc)
{
content = MatrixCreateMedia(mxc, data->data, mime);
/* Yeah, no, I'm not modifying the media creation code. */
HashMapSet(content,
"at.kappach.at.parsee.external",
JsonValueString(oob_data->data)
);
ShoveStanza(content, stanza);
/* Yeah, no, I'm not modifying the media creation code. */
HashMapSet(content,
"at.kappach.at.parsee.external",
JsonValueString(oob_data->data)
);
ShoveStanza(content, stanza);
event_id = ASSend(
args->config, mroom_id, encoded,
"m.room.message", content
);
Free(mime);
Free(mxc);
event_id = ASSend(
args->config, mroom_id, encoded,
"m.room.message", content
);
Free(mime);
Free(mxc);
}
}
}
else if (reactions)