fix(tctoken): fix 3 bugs found during code review
fix(tctoken): fix 3 bugs found during code review
This commit is contained in:
@@ -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]: {
|
||||
|
||||
Reference in New Issue
Block a user