mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-04 16:29:21 +00:00
Fix refresh of drafts folder when saving a draft
This commit is contained in:
1 parent
ca9f83ec1f
commit
9a8415c095
7 files changed
+25
-10
No files matched your search
@@ -434,9 +434,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
Mailbox.$log.debug('Loading UIDs ' + uids.join(' '));
|
||||
futureHeadersData = Mailbox.$$resource.post(this.id, 'headers', {uids: uids});
|
||||
this.$unwrapHeaders(futureHeadersData);
|
||||
if (uids.length) {
|
||||
Mailbox.$log.debug('Loading UIDs ' + uids.join(' '));
|
||||
futureHeadersData = Mailbox.$$resource.post(this.id, 'headers', {uids: uids});
|
||||
this.$unwrapHeaders(futureHeadersData);
|
||||
}
|
||||
}
|
||||
}
|
||||
return loaded;
|
||||
|
||||
@@ -171,10 +171,11 @@
|
||||
index = this.$mailbox.uidsMap[oldUID];
|
||||
this.$mailbox.uidsMap[uid] = index;
|
||||
delete this.$mailbox.uidsMap[oldUID];
|
||||
this.$mailbox.$messages[index].uid = this.uid;
|
||||
|
||||
// Update messages list of mailbox
|
||||
_.forEach(['from', 'to', 'subject'], function(attr) {
|
||||
_this.$mailbox.$messages[index][attr] = _this[attr];
|
||||
_this.$mailbox.$messages[index][attr] = _this.editable[attr];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
// },
|
||||
onSuccessItem: function(item, response, status, headers) {
|
||||
vm.message.$setUID(response.uid);
|
||||
vm.message.$reload({asDraft: false});
|
||||
vm.message.$reload();
|
||||
item.inlineUrl = response.lastAttachmentAttrs[0].url;
|
||||
//console.debug(item); console.debug('success = ' + JSON.stringify(response, undefined, 2));
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user