Skip to content

Commit

Permalink
Update preview cache after permanently unblocking images from a sender.
Browse files Browse the repository at this point in the history
Bug: 14446
  • Loading branch information
yunosh committed Sep 21, 2016
1 parent 359803e commit a40033c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion imp/lib/Ajax/Application/Handler/ImageUnblock.php
Expand Up @@ -33,9 +33,15 @@ public function imageUnblockAdd()
{
global $injector, $notification;

$address = $injector->getInstance('IMP_Factory_Contents')->create(new IMP_Indices_Mailbox($this->vars))->getHeader()->getOb('from')->bare_addresses[0];
$indices = new IMP_Indices_Mailbox($this->vars);
$address = $injector->getInstance('IMP_Factory_Contents')
->create($indices)
->getHeader()
->getOb('from')
->bare_addresses[0];

if ($injector->getInstance('IMP_Prefs_Special_ImageReplacement')->addSafeAddrList($address)) {
$this->_base->queue->message($indices);
$notification->push(sprintf(_("Always showing images in messages sent by %s."), $address), 'horde.success');
}

Expand Down

0 comments on commit a40033c

Please sign in to comment.