diff options
-rw-r--r-- | src/gateway/opcodes/LazyRequest.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts index 4ad1ae7b..3c21b708 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -57,7 +57,7 @@ const getMostRelevantSession = (sessions: Session[]) => { return ( statusMap[a.status] - statusMap[b.status] + - (a.activities.length - b.activities.length) * 2 + ((a.activities?.length ?? 0) - (b.activities?.length ?? 0)) * 2 ); }); |