mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 15:15:10 +00:00
[MOD] Do not send an edit stanza.
This commit is contained in:
parent
80ed79402a
commit
d71f7d2f49
2 changed files with 6 additions and 11 deletions
|
|
@ -403,21 +403,17 @@ ParseeEventHandler(ParseeData *data, HashMap *event)
|
|||
}
|
||||
|
||||
/* Some clients don't support retractions *at all*, which smell.
|
||||
* This therefore serves as a fallback, just in case that fails. */
|
||||
XMPPSendPlain(
|
||||
jabber, from, to,
|
||||
"[EDIT REDACT FROM PARSEE]",
|
||||
(char *) type,
|
||||
NULL, NULL, redacted,
|
||||
NULL, redacted_stanza
|
||||
);
|
||||
* This therefore serves as a fallback, just in case that fails.
|
||||
*
|
||||
* TODO: BAD IDEA. XMPP CLIENTS, FUCKING IMPLEMENT IT YOU LAZY
|
||||
* FUCKTARDS.
|
||||
*/
|
||||
XMPPRetract(jabber, from, to, (char *) type, redacted_stanza);
|
||||
|
||||
Free(redacted_stanza);
|
||||
Free(chat_id);
|
||||
Free(from);
|
||||
Free(to);
|
||||
/* TODO: Implement Matrix->XMPP redactions. */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ MessageStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
if (!resource && chat_id)
|
||||
{
|
||||
event_id = ParseeGetEventFromID(args, stanza, moderated);
|
||||
ASRedact(args->config, mroom_id, encoded, event_id);
|
||||
ASRedact(args->config, mroom_id, NULL, event_id);
|
||||
ParseePushAllStanza(args, stanza, event_id);
|
||||
pthread_mutex_unlock(&thr->info->chk_lock);
|
||||
|
||||
|
|
@ -666,7 +666,6 @@ MessageStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
|||
else if (retracted)
|
||||
{
|
||||
event_id = ParseeGetEventFromID(args, stanza, retracted);
|
||||
Log(LOG_WARNING, "RETRACTING %s %s", retracted, event_id);
|
||||
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