From c29c4bfaa4aa71c861def5d1dcc0d957937a87b2 Mon Sep 17 00:00:00 2001 From: Alexis Faizeau Date: Mon, 11 Oct 2021 18:39:34 +0200 Subject: [PATCH] Fix onChatMessage subscriber --- front/src/Stores/ChatStore.ts | 5 +++++ 1 file changed, 5 insertions(+) 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);