Scratch that, reverse it.

This commit is contained in:
lilia 2014-12-22 17:20:05 -08:00
parent 893fffdad8
commit 1175f2ae3c

View file

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