Skip to content

Commit

Permalink
Identity mismatch should be a warning notification, not an error
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jul 9, 2014
1 parent ab67e7a commit abd1ac7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion imp/lib/Ajax/Application/Handler/Common.php
Expand Up @@ -562,8 +562,11 @@ public function sendMessage()
} catch (IMP_Compose_Exception $e) {
$result->success = 0;

if (!is_null($e->tied_identity)) {
if (is_null($e->tied_identity)) {
$notify_level = 'horde.error';
} else {
$result->identity = $e->tied_identity;
$notify_level = 'horde.warning';
}

if ($e->encrypt) {
Expand Down

0 comments on commit abd1ac7

Please sign in to comment.