Skip to content

Commit

Permalink
improve concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
allchiang-msft committed Jun 13, 2024
1 parent 34f0e11 commit 570d62e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Project/src/MakeCall/CallCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,12 @@ export default class CallCard extends React.Component {
});

this.call.on('mutedByOthers', () => {
const messageBarText = 'Muted by someone else';
const messageBarText = 'You have been muted by someone else. Unmute to speak.';
console.log(messageBarText);
this.setState({ callMessage: messageBarText })
this.setState(prevState => ({
...prevState,
callMessage: `${prevState.callMessage ? prevState.callMessage + `\n` : ``} ${messageBarText}.`
}));
});

const handleParticipant = (participant) => {
Expand Down

0 comments on commit 570d62e

Please sign in to comment.