From 8239ae9b2dba4a5d980511becb787f76463be691 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 15 Dec 2014 17:26:04 +0000 Subject: [PATCH] Refresh the list if the move/copy target is the current folder so the new mails show --- mail/js/app.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 9e6a0df05f..edf5340ddd 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -2872,10 +2872,19 @@ app.classes.mail = AppJS.extend( // will close when the selection callback fires instead of load the // next message nm.controller._selectionMgr.resetSelection(); + + // Server response may contain refresh, but it's always delete + // Refresh list if current view is the target (happens when pasting) + var tree = self.et2.getWidgetById('nm[foldertree]'); + if(nm && tree && target == tree.getValue()) + { + // Can't trust the sorting, needs to be full refresh + nm.refresh(); + } }) .sendRequest(); this.mail_setRowClass(_senders,'deleted'); - // Server response contains refresh + // Server response may contain refresh, not needed here }, /**