Clean up legacy breadcrumbs persistence fallback
It's been more than a few weeks.
This commit is contained in:
parent
35c0c3142f
commit
8905566cfb
1 changed files with 0 additions and 12 deletions
|
@ -43,18 +43,6 @@ export default class RoomBreadcrumbs extends React.Component {
|
||||||
this._dispatcherRef = dis.register(this.onAction);
|
this._dispatcherRef = dis.register(this.onAction);
|
||||||
|
|
||||||
let storedRooms = SettingsStore.getValue("breadcrumb_rooms");
|
let storedRooms = SettingsStore.getValue("breadcrumb_rooms");
|
||||||
if (!storedRooms || !storedRooms.length) {
|
|
||||||
// Fallback to the rooms stored in localstorage for those who would have had this.
|
|
||||||
// TODO: Remove this after a bit - the feature was only on develop, so a few weeks should be plenty time.
|
|
||||||
const roomStr = localStorage.getItem("mx_breadcrumb_rooms");
|
|
||||||
if (roomStr) {
|
|
||||||
try {
|
|
||||||
storedRooms = JSON.parse(roomStr);
|
|
||||||
} catch (e) {
|
|
||||||
console.error("Failed to parse breadcrumbs:", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this._loadRoomIds(storedRooms || []);
|
this._loadRoomIds(storedRooms || []);
|
||||||
|
|
||||||
this._settingWatchRef = SettingsStore.watchSetting("breadcrumb_rooms", null, this.onBreadcrumbsChanged);
|
this._settingWatchRef = SettingsStore.watchSetting("breadcrumb_rooms", null, this.onBreadcrumbsChanged);
|
||||||
|
|
Loading…
Reference in a new issue