git » sdk » commit eb70042

We can scan a lot more than 1000 rows

author Stephen Paul Weber
2023-11-20 14:40:35 UTC
committer Stephen Paul Weber
2023-11-20 14:40:35 UTC
parent 18a79b315c9d541ff92e391170d8dd106b49b45b

We can scan a lot more than 1000 rows

xmpp/persistence/browser.js +1 -1

diff --git a/xmpp/persistence/browser.js b/xmpp/persistence/browser.js
index 6d36446..08fed3a 100644
--- a/xmpp/persistence/browser.js
+++ b/xmpp/persistence/browser.js
@@ -203,7 +203,7 @@ exports.xmpp.persistence = {
 				const result = {};
 				var rowCount = 0;
 				cursor.onsuccess = (event) => {
-					if (event.target.result && rowCount < 1000) {
+					if (event.target.result && rowCount < 40000) {
 						rowCount++;
 						const value = event.target.result.value;
 						if (result[value.chatId]) {