Skip to content

Commit 63fb271

Browse files
committed
App: Fix the chat widget crashing when loading with history.
1 parent 053ca59 commit 63fb271

File tree

1 file changed

+7
-6
lines changed
  • app/built_in_plugins/src/main/widgets/src/routes

1 file changed

+7
-6
lines changed

app/built_in_plugins/src/main/widgets/src/routes/chat.svelte

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,16 @@
246246
247247
Widget.on('init', () => {
248248
Widget.broadcast('update');
249-
});
250249
251-
Koi.on('*', (_, event) => onEvent(event));
252-
Koi.eventHistory.forEach((event) => {
253-
onEvent({
254-
...event,
255-
x_is_catchup: true
250+
Koi.eventHistory.forEach((event) => {
251+
onEvent({
252+
...event,
253+
x_is_catchup: true
254+
});
256255
});
257256
});
257+
258+
Koi.on('*', (_, event) => onEvent(event));
258259
});
259260
</script>
260261

0 commit comments

Comments
 (0)