Add and impl resend button. Update UI when failing to send messages.
This commit is contained in:
parent
e0496305aa
commit
2160440ff1
5 changed files with 39 additions and 2 deletions
|
@ -79,10 +79,12 @@ module.exports = {
|
|||
|
||||
onAction: function(payload) {
|
||||
switch (payload.action) {
|
||||
case 'message_send_failed':
|
||||
case 'message_sent':
|
||||
this.setState({
|
||||
room: MatrixClientPeg.get().getRoom(this.props.roomId)
|
||||
});
|
||||
this.forceUpdate();
|
||||
break;
|
||||
case'notifier_enabled':
|
||||
this.forceUpdate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue