mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
clear reply_to_event at queue not send time
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
80fbc757f5
commit
9c2e3e25f0
1 changed files with 8 additions and 6 deletions
|
@ -869,12 +869,14 @@ export default class MessageComposerInput extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
this.client.sendMessage(this.props.room.roomId, content).finally(() => {
|
||||
dis.dispatch({
|
||||
action: 'reply_to_event',
|
||||
event: null,
|
||||
});
|
||||
}).done((res) => {
|
||||
// Clear reply_to_event as we put the message into the queue
|
||||
// if the send fails, retry will handle resending.
|
||||
dis.dispatch({
|
||||
action: 'reply_to_event',
|
||||
event: null,
|
||||
});
|
||||
|
||||
this.client.sendMessage(this.props.room.roomId, content).done((res) => {
|
||||
dis.dispatch({
|
||||
action: 'message_sent',
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue