Fixing broken chat API
This commit is contained in:
parent
8b4764912a
commit
f92b728a8e
4 changed files with 10 additions and 32 deletions
|
@ -1,14 +0,0 @@
|
|||
import { iframeListener } from "../Api/IframeListener";
|
||||
import { chatMessagesStore } from "../Stores/ChatStore";
|
||||
import { playersStore } from "../Stores/PlayersStore";
|
||||
|
||||
export class DiscussionManager {
|
||||
constructor() {
|
||||
iframeListener.chatStream.subscribe((chatEvent) => {
|
||||
const userId = playersStore.addFacticePlayer(chatEvent.author);
|
||||
chatMessagesStore.addExternalMessage(userId, chatEvent.message);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const discussionManager = new DiscussionManager();
|
|
@ -5,11 +5,7 @@ import { blackListManager } from "./BlackListManager";
|
|||
import type { Subscription } from "rxjs";
|
||||
import type { UserSimplePeerInterface } from "./SimplePeer";
|
||||
import { readable, Readable, Unsubscriber } from "svelte/store";
|
||||
import {
|
||||
localStreamStore,
|
||||
obtainedMediaConstraintStore,
|
||||
ObtainedMediaStreamConstraints,
|
||||
} from "../Stores/MediaStore";
|
||||
import { localStreamStore, obtainedMediaConstraintStore, ObtainedMediaStreamConstraints } from "../Stores/MediaStore";
|
||||
import { playersStore } from "../Stores/PlayersStore";
|
||||
import { chatMessagesStore, newChatMessageStore } from "../Stores/ChatStore";
|
||||
import { getIceServersConfig } from "../Components/Video/utils";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue