Scratch that, reverse it.
This commit is contained in:
parent
893fffdad8
commit
1175f2ae3c
1 changed files with 2 additions and 2 deletions
|
@ -122,10 +122,10 @@ window.textsecure.messaging = function() {
|
|||
var proto = textsecure.protobuf.PushMessageContent.decode(encodedMessage, 'binary');
|
||||
sendMessageProto([number], proto, function(res) {
|
||||
if (res.failure.length > 0) {
|
||||
message.set('errors', []);
|
||||
message.set('errors', res.failure);
|
||||
}
|
||||
else {
|
||||
message.set('errors', res.failures);
|
||||
message.set('errors', []);
|
||||
}
|
||||
message.save().then(function(){
|
||||
extension.trigger('message', message); // notify frontend listeners
|
||||
|
|
Loading…
Reference in a new issue