Add replayable network errors

Support for manual message retry.

// FREEBIE
This commit is contained in:
lilia 2015-09-22 15:52:42 -07:00
parent bc03bdbfc4
commit fbb65d1988
4 changed files with 60 additions and 2 deletions

View file

@ -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) {