Skip to content

Commit

Permalink
Bugfix: don't send Element objects to IndexedDB
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Mar 22, 2024
1 parent 039e3d3 commit 22cdccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/headless/plugins/vcard/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ export async function getVCard (jid) {
} catch (error) {
return {
jid,
error,
vcard: isElement(error) ? error : null,
stanza: isElement(error) ? error : null,
error: isElement(error) ? null : error,
vcard_error: (new Date()).toISOString()
}
}
Expand Down

0 comments on commit 22cdccb

Please sign in to comment.