mirror of https://github.com/vector-im/riot-web
dispatch supports async dispatching on its own
parent
1a264006f7
commit
f157838864
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue