From f7bea2cae5198a74c1802371ca684a404240076a Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski Date: Thu, 16 Feb 2023 15:54:32 +0100 Subject: [PATCH] Remove unnecessary, accidentally inverted condition for room ordering (#10178) --- .../room-list/algorithms/list-ordering/ImportanceAlgorithm.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/stores/room-list/algorithms/list-ordering/ImportanceAlgorithm.ts b/src/stores/room-list/algorithms/list-ordering/ImportanceAlgorithm.ts index 35826c6497..11a7314b8f 100644 --- a/src/stores/room-list/algorithms/list-ordering/ImportanceAlgorithm.ts +++ b/src/stores/room-list/algorithms/list-ordering/ImportanceAlgorithm.ts @@ -104,7 +104,6 @@ export class ImportanceAlgorithm extends OrderingAlgorithm { // Every other sorting type affects the categories, not the whole tag. const categorized = this.categorizeRooms(rooms); for (const category of Object.keys(categorized)) { - if (!isNaN(Number(category))) continue; const notificationColor = category as unknown as NotificationColor; const roomsToOrder = categorized[notificationColor]; categorized[notificationColor] = sortRoomsWithAlgorithm(