forked from cadence/out-of-your-element
mildly arrange notes.md
This commit is contained in:
parent
c436357260
commit
5b2ccdc1f8
2 changed files with 53 additions and 51 deletions
|
@ -17,7 +17,7 @@ async function deleteMessage(data) {
|
|||
const eventsToRedact = db.prepare("SELECT event_id FROM event_message WHERE message_id = ?").pluck().all(data.id)
|
||||
|
||||
for (const eventID of eventsToRedact) {
|
||||
// Unfortuately, we can't specify a sender to do the redaction as, unless we find out that info via the audit logs
|
||||
// Unfortunately, we can't specify a sender to do the redaction as, unless we find out that info via the audit logs
|
||||
await api.redactEvent(roomID, eventID)
|
||||
db.prepare("DELETE FROM event_message WHERE event_id = ?").run(eventID)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue