Add replayable network errors
Support for manual message retry. // FREEBIE
This commit is contained in:
parent
bc03bdbfc4
commit
fbb65d1988
4 changed files with 60 additions and 2 deletions
|
@ -165,6 +165,14 @@
|
|||
});
|
||||
},
|
||||
|
||||
resend: function(number) {
|
||||
var error = this.getSendError(number);
|
||||
if (error) {
|
||||
var promise = new textsecure.ReplayableError(error).replay();
|
||||
this.send(promise);
|
||||
}
|
||||
},
|
||||
|
||||
resolveConflict: function(number) {
|
||||
var error = this.getKeyConflict(number);
|
||||
if (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue