From eccd0d2c1b8bd4b921bafca4585aa09d32ae561f Mon Sep 17 00:00:00 2001 From: S7evinK Date: Thu, 5 Nov 2020 11:19:23 +0100 Subject: Implement forgetting about rooms (#1572) * Add basic storage methods * Add internal api handler * Add check for forgotten room * Add /rooms/{roomID}/forget endpoint * Add missing rsAPI method * Remove unused parameters * Add passing tests Signed-off-by: Till Faelligen * Add missing file * Add postgres migration * Add sqlite migration * Use Forgetter to forget room * Remove empty line * Update HTTP status codes It looks like the spec calls for these to be 400, rather than 403: https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-forget Co-authored-by: Neil Alexander --- sytest-whitelist | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sytest-whitelist') diff --git a/sytest-whitelist b/sytest-whitelist index 1a12b591..ac089eab 100644 --- a/sytest-whitelist +++ b/sytest-whitelist @@ -486,3 +486,7 @@ Inbound federation rejects typing notifications from wrong remote Should not be able to take over the room by pretending there is no PL event Can get rooms/{roomId}/state for a departed room (SPEC-216) Users cannot set notifications powerlevel higher than their own +Forgotten room messages cannot be paginated +Forgetting room does not show up in v2 /sync +Can forget room you've been kicked from +Can re-join room if re-invited -- cgit v1.2.3