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 */