mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
perf(export): batch message count retrieval for large session lists
This commit is contained in:
@@ -624,6 +624,10 @@ function ExportPage() {
|
||||
const count = prev[session.username]
|
||||
if (typeof count === 'number') {
|
||||
next[session.username] = count
|
||||
continue
|
||||
}
|
||||
if (typeof session.messageCountHint === 'number' && Number.isFinite(session.messageCountHint) && session.messageCountHint >= 0) {
|
||||
next[session.username] = Math.floor(session.messageCountHint)
|
||||
}
|
||||
}
|
||||
return next
|
||||
|
||||
Reference in New Issue
Block a user