v1.5.2/remove message add

This commit is contained in:
2020-07-25 22:41:57 -04:00
parent 7c61486542
commit 791f44385f
+5 -6
View File
@@ -276,9 +276,6 @@ export default class Chat extends Component {
time: new Date(), time: new Date(),
type: '', type: '',
}; };
const { messages } = this.state;
messages.push({ ...data, type: 'pending' });
this.setState({ messages });
if (this.state.gif === true) data.type = 'giphy'; if (this.state.gif === true) data.type = 'giphy';
SendMessageApi(data).catch((err) => { SendMessageApi(data).catch((err) => {
this.props.notify(err.message || err.statusText); this.props.notify(err.message || err.statusText);
@@ -522,9 +519,11 @@ export default class Chat extends Component {
</div> </div>
<div className="text-phone-panel"> <div className="text-phone-panel">
{gif || newMessage ? null : ( {gif || newMessage ? null : (
<IconButton color="secondary" onClick={this.toggleFullscreen}> <Tooltip title="Fullscreen with Watch Party" aria-label="Fullscreen">
{isFullscreen ? <FullscreenExit /> : <Fullscreen />} <IconButton color="secondary" onClick={this.toggleFullscreen}>
</IconButton> {isFullscreen ? <FullscreenExit /> : <Fullscreen />}
</IconButton>
</Tooltip>
)} )}
{gif || newMessage ? null : ( {gif || newMessage ? null : (
<IconButton <IconButton