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(),
type: '',
};
const { messages } = this.state;
messages.push({ ...data, type: 'pending' });
this.setState({ messages });
if (this.state.gif === true) data.type = 'giphy';
SendMessageApi(data).catch((err) => {
this.props.notify(err.message || err.statusText);
@@ -522,9 +519,11 @@ export default class Chat extends Component {
</div>
<div className="text-phone-panel">
{gif || newMessage ? null : (
<IconButton color="secondary" onClick={this.toggleFullscreen}>
{isFullscreen ? <FullscreenExit /> : <Fullscreen />}
</IconButton>
<Tooltip title="Fullscreen with Watch Party" aria-label="Fullscreen">
<IconButton color="secondary" onClick={this.toggleFullscreen}>
{isFullscreen ? <FullscreenExit /> : <Fullscreen />}
</IconButton>
</Tooltip>
)}
{gif || newMessage ? null : (
<IconButton