From 62b4596c049225ab767f7ef5a91c71cc2749d9fa Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 8 Jul 2020 18:36:56 -0600 Subject: [PATCH] Be consistent with other stores --- src/stores/room-list/RoomListLayoutStore.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/stores/room-list/RoomListLayoutStore.ts b/src/stores/room-list/RoomListLayoutStore.ts index 4d8c98a4f8..fbc7d7719d 100644 --- a/src/stores/room-list/RoomListLayoutStore.ts +++ b/src/stores/room-list/RoomListLayoutStore.ts @@ -31,6 +31,13 @@ export default class RoomListLayoutStore extends AsyncStoreWithClient { super(defaultDispatcher); } + public static get instance(): RoomListLayoutStore { + if (!RoomListLayoutStore.internalInstance) { + RoomListLayoutStore.internalInstance = new RoomListLayoutStore(); + } + return RoomListLayoutStore.internalInstance; + } + public ensureLayoutExists(tagId: TagID) { if (!this.layoutMap.has(tagId)) { this.layoutMap.set(tagId, new ListLayout(tagId)); @@ -52,13 +59,6 @@ export default class RoomListLayoutStore extends AsyncStoreWithClient { } } - public static get instance(): RoomListLayoutStore { - if (!RoomListLayoutStore.internalInstance) { - RoomListLayoutStore.internalInstance = new RoomListLayoutStore(); - } - return RoomListLayoutStore.internalInstance; - } - protected async onNotReady(): Promise { // On logout, clear the map. this.layoutMap.clear();