fix: sync pre-keys on socket start and add specific pre-key error approach (#1663)

* fix: sync prekeys when storage mismatch

* fix: verify if current pre-key exists instead of matching

* add: pre-keys error specific approach

* fix: lint

* fix: lint
This commit is contained in:
Gustavo Quadri
2025-09-07 08:11:50 -03:00
committed by GitHub
parent 0fbce52fd3
commit 8f21a67e4a
3 changed files with 148 additions and 19 deletions
+3
View File
@@ -111,6 +111,9 @@ export const MIN_PREKEY_COUNT = 5
export const INITIAL_PREKEY_COUNT = 30
export const UPLOAD_TIMEOUT = 30000 // 30 seconds
export const MIN_UPLOAD_INTERVAL = 5000 // 5 seconds minimum between uploads
export const DEFAULT_CACHE_TTLS = {
SIGNAL_STORE: 5 * 60, // 5 minutes
MSG_RETRY: 60 * 60, // 1 hour