diff options
Diffstat (limited to 'js/views/message.js')
-rw-r--r-- | js/views/message.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/views/message.js b/js/views/message.js index d50213e4d..d0c42dd65 100644 --- a/js/views/message.js +++ b/js/views/message.js @@ -112,7 +112,8 @@ define(function(require) { data: {}, type: 'DELETE', success: function() { - require('app').Cache.removeMessage(require('app').State.currentAccountId, require('app').State.currentFolderId, thisModel.id); + var app = require('app'); + app.Cache.removeMessage(app.State.currentAccountId, app.State.currentFolderId, thisModel.id); }, error: function() { require('app').UI.showError(t('mail', 'Error while deleting message.')); |