From b87824ba929334a567935dbe11ba14bb3a391c72 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 16 Jun 2018 19:49:53 +0100 Subject: [PATCH 1/2] hide `m.room.avatar` from FilePanel via sync filter Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/FilePanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/FilePanel.js b/src/components/structures/FilePanel.js index 3249cae22c..7d1d23839e 100644 --- a/src/components/structures/FilePanel.js +++ b/src/components/structures/FilePanel.js @@ -69,6 +69,7 @@ const FilePanel = React.createClass({ "timeline": { "contains_url": true, "not_types": [ + "m.room.avatar", "m.sticker", ], }, From eb32dda260bb421865c987dccb4f0f9c9d6b8898 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 16 Jun 2018 19:52:15 +0100 Subject: [PATCH 2/2] given we also want to hide widget events, hide all except m.room.message Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/FilePanel.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/structures/FilePanel.js b/src/components/structures/FilePanel.js index 7d1d23839e..927449750c 100644 --- a/src/components/structures/FilePanel.js +++ b/src/components/structures/FilePanel.js @@ -68,9 +68,8 @@ const FilePanel = React.createClass({ "room": { "timeline": { "contains_url": true, - "not_types": [ - "m.room.avatar", - "m.sticker", + "types": [ + "m.room.message", ], }, },