From a4330123b971b748f2dcb42147569bed744f9b06 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sun, 9 Jul 2023 23:18:18 +0000 Subject: [PATCH] Add EventRedact() prototype. --- TODO.txt | 2 +- src/include/Event.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/TODO.txt b/TODO.txt index 56d2ade..32fd557 100644 --- a/TODO.txt +++ b/TODO.txt @@ -22,7 +22,7 @@ Milestone: v0.4.0 [x] Rename Sha2.h to just Sha; add Sha1() function [x] Make Sha256() return raw bytes; add function to convert to hex string. - [ ] 8: Rooms + [~] 8: Rooms [~] 9: User Data [x] Profiles [~] Directory diff --git a/src/include/Event.h b/src/include/Event.h index 5246b17..452ecbc 100644 --- a/src/include/Event.h +++ b/src/include/Event.h @@ -52,4 +52,10 @@ extern char * EventContentHash(HashMap *); */ extern char * EventIdGet(Room *, HashMap *); +/** + * Redact an event according to the rules for the given + * room. The event is modified in place. + */ +extern int EventRedact(Room *, HashMap *); + #endif /* TELODENDRIA_EVENT_H */