This commit is contained in:
Ralf Becker 2020-07-22 21:27:05 +02:00
parent a6688ab3f8
commit a101a6f579

View File

@ -411,7 +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 (!displayed_folder.match(/::/)) displayed_folder += '::INBOX';
if (folder === displayed_folder) if (folder === displayed_folder)
{ {
// Just update the nm // Just update the nm