fix(tctoken): fix 3 bugs found during code review

fix(tctoken): fix 3 bugs found during code review
This commit is contained in:
Renato Alcara
2026-02-20 22:27:16 -03:00
committed by GitHub
parent eaade80796
commit 251cfa25ec
3 changed files with 54 additions and 36 deletions
+6
View File
@@ -148,6 +148,12 @@ export async function storeTcTokensFromIqResult({
continue
}
// Don't store timestamp-less tokens at all — isTcTokenExpired treats them
// as immediately expired regardless of whether an existing entry is present
if(!incomingTs) {
continue
}
await keys.set({
tctoken: {
[storageJid]: {