diff --git a/frontend/apps/widget/src/components/HomeHeader.vue b/frontend/apps/widget/src/components/HomeHeader.vue index 8b750135..118d1bf3 100644 --- a/frontend/apps/widget/src/components/HomeHeader.vue +++ b/frontend/apps/widget/src/components/HomeHeader.vue @@ -8,7 +8,7 @@ class="max-h-8 max-w-full" /> -
+

{{ parsedGreeting }}

{{ parsedIntroduction }} diff --git a/frontend/apps/widget/src/websocket.js b/frontend/apps/widget/src/websocket.js index 693c2d4c..23cbee82 100644 --- a/frontend/apps/widget/src/websocket.js +++ b/frontend/apps/widget/src/websocket.js @@ -58,7 +58,6 @@ export class WidgetWebSocketClient { handleOpen () { this.reconnectInterval = 1000 - this.wasReconnecting = this.reconnectAttempts > 0 this.reconnectAttempts = 0 this.isReconnecting = false this.lastPong = Date.now() @@ -69,10 +68,8 @@ export class WidgetWebSocketClient { this.joinInbox() } - // If this was a reconnection, sync current conversation messages. - if (this.wasReconnecting) { - this.syncMissedMessages() - } + // Sync messages on every connect to pick up anything missed while disconnected. + this.syncMissedMessages() } handleMessage (event) {