Revert "Don't refreshGroups in tryMessageAgain", making a better one

This reverts commit f9e68be45b.

Conflicts:
	js/sendmessage.js
This commit is contained in:
Matt Corallo 2014-12-24 18:04:47 -05:00
parent 1e4a7108e3
commit 67bb400b87

View file

@ -119,6 +119,7 @@ window.textsecure.messaging = function() {
message.fetch().then(function() {
textsecure.storage.removeEncrypted("devices" + number);
var proto = textsecure.protobuf.PushMessageContent.decode(encodedMessage, 'binary');
refreshGroups(number).then(function() {
sendMessageProto(message.get('sent_at'), [number], proto, function(res) {
if (res.failure.length > 0) {
message.set('errors', res.failure);
@ -131,6 +132,7 @@ window.textsecure.messaging = function() {
});
});
});
});
};
textsecure.replay.registerFunction(tryMessageAgain, textsecure.replay.Type.SEND_MESSAGE);