diff --git a/front/src/Stores/ChatStore.ts b/front/src/Stores/ChatStore.ts index 1bb763cf..90456faf 100644 --- a/front/src/Stores/ChatStore.ts +++ b/front/src/Stores/ChatStore.ts @@ -1,6 +1,7 @@ import { writable } from "svelte/store"; import { playersStore } from "./PlayersStore"; import type { PlayerInterface } from "../Phaser/Game/PlayerInterface"; +import { iframeListener } from "../Api/IframeListener"; export const chatVisibilityStore = writable(false); export const chatInputFocusStore = writable(false); @@ -78,6 +79,8 @@ function createChatMessagesStore() { date: new Date(), }); } + + iframeListener.sendUserInputChat(text); return list; }); }, @@ -94,6 +97,8 @@ function createChatMessagesStore() { date: new Date(), }); } + + iframeListener.sendUserInputChat(text); return list; }); chatVisibilityStore.set(true);