[REMOVE] mail: fix from forward-port

`documentModel` is already declared and assigned the same value, so this
part is not necessary inside this conditional branch.
This commit is contained in:
Alexandre Kühn
2018-07-19 14:01:58 +02:00
parent 4bcfcb9aa4
commit a5be128bb1
@@ -288,7 +288,6 @@ var MessagingMenu = Widget.extend({
var previewID = $preview.data('preview-id');
var documentModel = $preview.data('document-model');
if (previewID === 'mailbox_inbox') {
var documentModel = $preview.data('document-model');
var documentID = $preview.data('document-id');
var inbox = this.call('mail_service', 'getMailbox', 'inbox');
var messages = inbox.getLocalMessages({