mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Invert pending/sent model
This commit is contained in:
@@ -75,8 +75,7 @@
|
||||
type : 'outgoing',
|
||||
attachments : attachments,
|
||||
sent_at : now,
|
||||
received_at : now,
|
||||
pending : true
|
||||
received_at : now
|
||||
});
|
||||
message.save();
|
||||
|
||||
@@ -97,7 +96,7 @@
|
||||
sendFunc = textsecure.messaging.sendMessageToGroup;
|
||||
}
|
||||
sendFunc(this.get('id'), body, attachments, now).then(function() {
|
||||
message.save({'pending': false});
|
||||
message.save({'sent': true});
|
||||
}.bind(this)).catch(function(errors) {
|
||||
if (errors instanceof Error) {
|
||||
errors = [errors];
|
||||
|
||||
Reference in New Issue
Block a user