You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Fix upload cancel in e2e rooms
This is a bit of a mess of passing promises around - we weren't taking the right promise to pass to cancelUpload. Also e2e uploads take time to read into memory & encrypt, so allow cancelling them during those phases too, even though we can't abort those phases before they're done - we do mark the upload as cancelled though so filter the current uploads for cancelled ones. Fixes https://github.com/vector-im/riot-web/issues/4891
This commit is contained in:
@@ -543,6 +543,7 @@ module.exports = React.createClass({
|
||||
case 'notifier_enabled':
|
||||
case 'upload_started':
|
||||
case 'upload_finished':
|
||||
case 'upload_canceled':
|
||||
this.forceUpdate();
|
||||
break;
|
||||
case 'call_state':
|
||||
|
||||
Reference in New Issue
Block a user