show message previews only after the widget loads

This commit is contained in:
Abhinav Raut
2026-09-20 23:19:57 +05:30
parent 835128504e
commit 04464fb2e0
+2 -1
View File
@@ -538,6 +538,7 @@
handleWidgetLoaded () {
this.widgetLoaded = true;
this.updateLauncherVisibility();
this.renderPreviews();
}
toggle () {
@@ -712,7 +713,7 @@
}] };
}
const enabled = data?.config?.[this.isMobile ? 'mobile' : 'desktop'];
if (!data || !enabled || this.isChatVisible || this.hideLauncher) {
if (!data || !enabled || !this.widgetLoaded || this.isChatVisible || this.hideLauncher) {
this.previewHost?.remove();
this.previewHost = null;
this.previewSignature = '';