mirror of https://github.com/vector-im/riot-web
Merge pull request #2699 from matrix-org/travis/fix-bug-in-notifications
Fix NPE relating to toggling notificationspull/21833/head
commit
addc7e519b
|
@ -537,12 +537,12 @@ module.exports = React.createClass({
|
||||||
case 'picture_snapshot':
|
case 'picture_snapshot':
|
||||||
this.uploadFile(payload.file);
|
this.uploadFile(payload.file);
|
||||||
break;
|
break;
|
||||||
case 'notifier_enabled':
|
|
||||||
case 'upload_failed':
|
case 'upload_failed':
|
||||||
// 413: File was too big or upset the server in some way.
|
// 413: File was too big or upset the server in some way.
|
||||||
if(payload.error.http_status === 413) {
|
if (payload.error && payload.error.http_status === 413) {
|
||||||
this._fetchMediaConfig(true);
|
this._fetchMediaConfig(true);
|
||||||
}
|
}
|
||||||
|
case 'notifier_enabled':
|
||||||
case 'upload_started':
|
case 'upload_started':
|
||||||
case 'upload_finished':
|
case 'upload_finished':
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
|
|
Loading…
Reference in New Issue