fix: shortcode subscription failing to initialize

This commit is contained in:
nivedin
2024-01-04 13:25:56 +05:30
committed by Andrew Bastin
parent 6ed4b73a34
commit 80eb4c7701

View File

@@ -249,7 +249,11 @@ const loading = computed(
onLoggedIn(() => { onLoggedIn(() => {
try { try {
// wait for a bit to let the auth token to be set
// because in some race conditions, the token is not set this fixes that
setTimeout(() => {
adapter.initialize() adapter.initialize()
}, 10)
} catch (e) { } catch (e) {
console.error(e) console.error(e)
} }