From 4e6e1ff25f126e049675d8ab90e2bd476e2b260e Mon Sep 17 00:00:00 2001 From: Kerry Archibald Date: Mon, 8 May 2023 16:22:36 +1200 Subject: [PATCH] set default activity ordering to natural for room list --- src/stores/room-list/RoomListStore.ts | 2 +- test/stores/room-list/RoomListStore-test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/room-list/RoomListStore.ts b/src/stores/room-list/RoomListStore.ts index 2048aad080a..e23c60be306 100644 --- a/src/stores/room-list/RoomListStore.ts +++ b/src/stores/room-list/RoomListStore.ts @@ -469,7 +469,7 @@ export class RoomListStoreClass extends AsyncStoreWithClient implements // logic must match calculateTagSorting private calculateListOrder(tagId: TagID): ListAlgorithm { - const defaultOrder = ListAlgorithm.Importance; + const defaultOrder = ListAlgorithm.Natural; const definedOrder = this.getListOrder(tagId); const storedOrder = this.getStoredListOrder(tagId); diff --git a/test/stores/room-list/RoomListStore-test.ts b/test/stores/room-list/RoomListStore-test.ts index aaec6942132..5493ef8927f 100644 --- a/test/stores/room-list/RoomListStore-test.ts +++ b/test/stores/room-list/RoomListStore-test.ts @@ -101,7 +101,7 @@ describe("RoomListStore", () => { }); it.each(OrderedDefaultTagIDs)("defaults to activity ordering for %s=", (tagId) => { - expect(RoomListStore.instance.getListOrder(tagId)).toBe(ListAlgorithm.Importance); + expect(RoomListStore.instance.getListOrder(tagId)).toBe(ListAlgorithm.Natural); }); function createStore(): { store: RoomListStoreClass; handleRoomUpdate: jest.Mock } {