* Mail: Fix mail import does not display imported mail in correct style

This commit is contained in:
Hadi Nategh 2018-04-09 17:39:49 +02:00
parent 4c99e0bf99
commit 26bd318aaa

View File

@ -3664,9 +3664,8 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
} }
if (!$importFailed) if (!$importFailed)
{ {
list($width, $height) = explode('x', Link::get_registry('mail', 'add_popup')); Api\Json\Response::get()->call('egw.open', $linkData['id'], 'mail', 'view');
if ($width > 0 && $height > 0) Api\Json\Response::get()->call('resizeTo', $width, $height); Api\Json\Response::get()->call('window.close');
ExecMethod2('mail.mail_ui.displayMessage',$linkData);
return; return;
} }
} }