You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
dispatch supports async dispatching on its own
This commit is contained in:
@@ -1702,10 +1702,7 @@ export default React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_dispatchTimelineResize() {
|
_dispatchTimelineResize() {
|
||||||
// prevent dispatch from within dispatch error
|
dis.dispatch({ action: 'timeline_resize' });
|
||||||
setTimeout(() => {
|
|
||||||
dis.dispatch({ action: 'timeline_resize' }, true);
|
|
||||||
}, 0);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomCreated: function(roomId) {
|
onRoomCreated: function(roomId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user