Fix onChatMessage subscriber
This commit is contained in:
parent
da8cc661b7
commit
c29c4bfaa4
@ -1,6 +1,7 @@
|
|||||||
import { writable } from "svelte/store";
|
import { writable } from "svelte/store";
|
||||||
import { playersStore } from "./PlayersStore";
|
import { playersStore } from "./PlayersStore";
|
||||||
import type { PlayerInterface } from "../Phaser/Game/PlayerInterface";
|
import type { PlayerInterface } from "../Phaser/Game/PlayerInterface";
|
||||||
|
import { iframeListener } from "../Api/IframeListener";
|
||||||
|
|
||||||
export const chatVisibilityStore = writable(false);
|
export const chatVisibilityStore = writable(false);
|
||||||
export const chatInputFocusStore = writable(false);
|
export const chatInputFocusStore = writable(false);
|
||||||
@ -78,6 +79,8 @@ function createChatMessagesStore() {
|
|||||||
date: new Date(),
|
date: new Date(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iframeListener.sendUserInputChat(text);
|
||||||
return list;
|
return list;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -94,6 +97,8 @@ function createChatMessagesStore() {
|
|||||||
date: new Date(),
|
date: new Date(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iframeListener.sendUserInputChat(text);
|
||||||
return list;
|
return list;
|
||||||
});
|
});
|
||||||
chatVisibilityStore.set(true);
|
chatVisibilityStore.set(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user