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(),
|
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 : (
|
||||||
|
<Tooltip title="Fullscreen with Watch Party" aria-label="Fullscreen">
|
||||||
<IconButton color="secondary" onClick={this.toggleFullscreen}>
|
<IconButton color="secondary" onClick={this.toggleFullscreen}>
|
||||||
{isFullscreen ? <FullscreenExit /> : <Fullscreen />}
|
{isFullscreen ? <FullscreenExit /> : <Fullscreen />}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
{gif || newMessage ? null : (
|
{gif || newMessage ? null : (
|
||||||
<IconButton
|
<IconButton
|
||||||
|
|||||||
Reference in New Issue
Block a user