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

Commit 857e22f

Browse files
authored
Fix condition of logging possible room list corruption (#10685)
* Revert condition of logging possible room list corruption * Fix loop condition
1 parent b32482b commit 857e22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/room-list/algorithms/list-ordering/ImportanceAlgorithm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export class ImportanceAlgorithm extends OrderingAlgorithm {
287287
}
288288

289289
// Do a quick check to see if we've completely broken the index
290-
for (let i = 1; i <= CATEGORY_ORDER.length; i++) {
290+
for (let i = 1; i < CATEGORY_ORDER.length; i++) {
291291
const lastCat = CATEGORY_ORDER[i - 1];
292292
const lastCatIndex = indices[lastCat];
293293
const thisCat = CATEGORY_ORDER[i];

0 commit comments

Comments
 (0)