v1.5.2/remove message add
This commit is contained in:
+2
-3
@@ -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 : (
|
||||
<Tooltip title="Fullscreen with Watch Party" aria-label="Fullscreen">
|
||||
<IconButton color="secondary" onClick={this.toggleFullscreen}>
|
||||
{isFullscreen ? <FullscreenExit /> : <Fullscreen />}
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
)}
|
||||
{gif || newMessage ? null : (
|
||||
<IconButton
|
||||
|
||||
Reference in New Issue
Block a user