From 6f9d673b79df42636b85427d44cbf29e02caec44 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 9 Oct 2018 17:35:40 +0100 Subject: [PATCH] Focus composer after closing room settings For some reason the slate update means the composer doesn't have the focus after closing the room settings, and the end to end tests pick this up! --- src/components/structures/RoomView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index e9e46a2ff6..32121d6de5 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -195,6 +195,8 @@ module.exports = React.createClass({ editingRoomSettings: RoomViewStore.isEditingSettings(), }; + if (this.state.editingRoomSettings && !newState.editingRoomSettings) dis.dispatch({action: 'focus_composer'}); + // Temporary logging to diagnose https://github.com/vector-im/riot-web/issues/4307 console.log( 'RVS update:',