fix: polish matrix e2ee storage (#1298) (thanks @sibbl)
This commit is contained in:
1 parent
9b71382efb
commit
d91f0ceeb3
13 files changed
+1196
-140
No files matched your search
@@ -112,7 +112,8 @@ export function enqueueCommand<T>(
|
||||
}
|
||||
|
||||
export function getQueueSize(lane: string = CommandLane.Main) {
|
||||
const state = lanes.get(lane);
|
||||
const resolved = lane.trim() || CommandLane.Main;
|
||||
const state = lanes.get(resolved);
|
||||
if (!state) return 0;
|
||||
return state.queue.length + state.active;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user