Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d103d2e

Browse files
author
Kerry
authored
set default activity ordering to natural for room list (#10820)
1 parent 727c885 commit d103d2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/stores/room-list/RoomListStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export class RoomListStoreClass extends AsyncStoreWithClient<IState> implements
469469

470470
// logic must match calculateTagSorting
471471
private calculateListOrder(tagId: TagID): ListAlgorithm {
472-
const defaultOrder = ListAlgorithm.Importance;
472+
const defaultOrder = ListAlgorithm.Natural;
473473
const definedOrder = this.getListOrder(tagId);
474474
const storedOrder = this.getStoredListOrder(tagId);
475475

test/stores/room-list/RoomListStore-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe("RoomListStore", () => {
101101
});
102102

103103
it.each(OrderedDefaultTagIDs)("defaults to activity ordering for %s=", (tagId) => {
104-
expect(RoomListStore.instance.getListOrder(tagId)).toBe(ListAlgorithm.Importance);
104+
expect(RoomListStore.instance.getListOrder(tagId)).toBe(ListAlgorithm.Natural);
105105
});
106106

107107
function createStore(): { store: RoomListStoreClass; handleRoomUpdate: jest.Mock<any, any> } {

0 commit comments

Comments
 (0)