diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-20 16:19:42 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-06-20 16:38:05 +0300 |
commit | 0a98d7dcf8e424db3fcc85418f49f9a14c19c735 (patch) | |
tree | 984d6b9f57a9b037dfa22cef71ca5e6ba02a2463 /lib/Activity | |
parent | 230a98739ecc9d96cc1406035a649d80d987f26c (diff) |
Use PNG icon on activity email
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Activity')
-rw-r--r-- | lib/Activity/Provider.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Activity/Provider.php b/lib/Activity/Provider.php index 26c5a5bb3..215c93d33 100644 --- a/lib/Activity/Provider.php +++ b/lib/Activity/Provider.php @@ -82,7 +82,11 @@ class Provider implements IProvider { $l = $this->languageFactory->get('spreed', $language); - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('spreed', 'app.svg'))); + if (method_exists($this->activityManager, 'getRequirePNG') && $this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('spreed', 'app-dark.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('spreed', 'app-dark.svg'))); + } try { $parameters = $event->getSubjectParameters(); |