From 987b11973141da54221001fa0081f2a6a0d42353 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 1 Feb 2019 19:14:11 +0100 Subject: [PATCH] also update e2e icon once the room becomes encrypted --- src/components/structures/RoomView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index fb3c95fdcd..9a81192e39 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -591,6 +591,10 @@ module.exports = React.createClass({ this._updatePreviewUrlVisibility(room); } + if (ev.getType() === "m.room.encryption") { + this._updateE2EStatus(room); + } + // ignore anything but real-time updates at the end of the room: // updates from pagination will happen when the paginate completes. if (toStartOfTimeline || !data || !data.liveEvent) return;