mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Remove extraneous paranoia
The value is nullchecked later on.
This commit is contained in:
parent
8d25952dbb
commit
2f89f28496
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ export default class AccountSettingsHandler extends MatrixClientBackedSettingsHa
|
||||||
// This seems fishy - try and get the event for the new rooms
|
// This seems fishy - try and get the event for the new rooms
|
||||||
const newType = this._getSettings(BREADCRUMBS_EVENT_TYPE);
|
const newType = this._getSettings(BREADCRUMBS_EVENT_TYPE);
|
||||||
if (newType) val = newType['recent_rooms'];
|
if (newType) val = newType['recent_rooms'];
|
||||||
else val = event.getContent()['rooms'] || [];
|
else val = event.getContent()['rooms'];
|
||||||
} else if (event.getType() === BREADCRUMBS_EVENT_TYPE) {
|
} else if (event.getType() === BREADCRUMBS_EVENT_TYPE) {
|
||||||
val = event.getContent()['recent_rooms'];
|
val = event.getContent()['recent_rooms'];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue