From f15783886432c1439d139ec874eeab6e24e4e0b9 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 29 Mar 2019 14:32:26 +0100 Subject: [PATCH] dispatch supports async dispatching on its own --- src/components/structures/MatrixChat.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index b7a5b94373..83492c2ac5 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1702,10 +1702,7 @@ export default React.createClass({ }, _dispatchTimelineResize() { - // prevent dispatch from within dispatch error - setTimeout(() => { - dis.dispatch({ action: 'timeline_resize' }, true); - }, 0); + dis.dispatch({ action: 'timeline_resize' }); }, onRoomCreated: function(roomId) {