mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-14 00:45:10 +00:00
[MOD] Actually redact
This commit is contained in:
parent
a167d5d724
commit
47823ba56b
3 changed files with 53 additions and 7 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue