Skip to content

Commit

Permalink
restores the 'new room created' conditional part of initial alert
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmcgaw committed Feb 26, 2023
1 parent 30f31f6 commit 3ecd657
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/store/epics/chatEpics.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ const initChatHandlerConnection = ({ authToken, secretKey, mID, isNewRoom }) =>
return chatHandler.initConnection({
authToken,
secretKey: secretKey,
mID
mID,
isNewRoom,
});
};

Expand Down
4 changes: 2 additions & 2 deletions src/store/epics/helpers/ChatHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class ChatHandler {
reader.readAsArrayBuffer(fileBlob);
};

initConnection = ({ mID, secretKey, authToken }) => {
initConnection = ({ mID, secretKey, authToken, isNewRoom }) => {
this.mID = mID;
this.secretKey = secretKey;
this.authToken = authToken;
Expand All @@ -195,7 +195,7 @@ class ChatHandler {
this.ws.onmessage = this.onWsMessage;
this.ws.onopen = (event) => {
event.target.send(this.authToken);
observer.next();
observer.next(isNewRoom);
observer.complete();
};

Expand Down

0 comments on commit 3ecd657

Please sign in to comment.