From 8905566cfbd5db5d22bb04fa107460c7e9e43fcf Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 28 Jun 2019 16:30:59 -0600 Subject: [PATCH] Clean up legacy breadcrumbs persistence fallback It's been more than a few weeks. --- src/components/views/rooms/RoomBreadcrumbs.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/components/views/rooms/RoomBreadcrumbs.js b/src/components/views/rooms/RoomBreadcrumbs.js index f02a8143b4..3624add8a2 100644 --- a/src/components/views/rooms/RoomBreadcrumbs.js +++ b/src/components/views/rooms/RoomBreadcrumbs.js @@ -43,18 +43,6 @@ export default class RoomBreadcrumbs extends React.Component { this._dispatcherRef = dis.register(this.onAction); 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._settingWatchRef = SettingsStore.watchSetting("breadcrumb_rooms", null, this.onBreadcrumbsChanged);