[MOD] Actually redact

This commit is contained in:
LDA 2024-07-07 23:59:13 +02:00
commit 47823ba56b
3 changed files with 53 additions and 7 deletions

View file

@ -621,13 +621,8 @@ MessageStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
}
else if (retracted)
{
/* TODO: Use an actual redact. Not doing it now because it's not
* fun to do at the moment... */
event_id = ParseeGetEventFromID(args, stanza, retracted);
Free(ASSend(
args->config, mroom_id, encoded, "m.room.message",
MatrixCreateReplace(event_id, "[Retracted]")
));
ASRedact(args->config, mroom_id, encoded, event_id);
ParseePushAllStanza(args, stanza, event_id);
pthread_mutex_unlock(&thr->info->chk_lock);