fix account marked in tree gives only $acc_id not "$acc_id::INBOX"

This commit is contained in:
Ralf Becker 2020-07-22 18:58:25 +02:00
parent 25f942c431
commit a86a4bcdc3

View File

@ -411,6 +411,7 @@ app.classes.mail = AppJS.extend(
// nm_value.selectedFolder is not always set, read it from foldertree, if not // nm_value.selectedFolder is not always set, read it from foldertree, if not
let foldertree = this.et2 ? this.et2.getWidgetById('nm[foldertree]') : null; let foldertree = this.et2 ? this.et2.getWidgetById('nm[foldertree]') : null;
let displayed_folder = (nm_value ? nm_value.selectedFolder : null) || (foldertree ? foldertree.getValue() : ''); let displayed_folder = (nm_value ? nm_value.selectedFolder : null) || (foldertree ? foldertree.getValue() : '');
if (!displayed_foler.match(/::/)) displayed_folder += '::INBOX';
if (folder === displayed_folder) if (folder === displayed_folder)
{ {
// Just update the nm // Just update the nm