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

Commit

Permalink
set default activity ordering to natural for room list (#10820)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry authored May 8, 2023
1 parent 727c885 commit d103d2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stores/room-list/RoomListStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export class RoomListStoreClass extends AsyncStoreWithClient<IState> 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);

Expand Down
2 changes: 1 addition & 1 deletion test/stores/room-list/RoomListStore-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any, any> } {
Expand Down

0 comments on commit d103d2e

Please sign in to comment.