Skip to content

Commit

Permalink
Use avatar from cache in notifications.el notifications
Browse files Browse the repository at this point in the history
It seems that (get jid 'avatar) has started returning something
different than previously (a binary blob, instead of a plist).
  • Loading branch information
Adam Sjøgren authored and legoscia committed Aug 14, 2014
1 parent 090c983 commit 0951030
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jabber-notifications.el
Expand Up @@ -59,11 +59,12 @@
(or title
(or jabber-notifications-message-header " ")
text)))
(avatar (get (jabber-jid-symbol from) 'avatar)))
(avatar-hash (get (jabber-jid-symbol from) 'avatar-hash)))
(notifications-notify
:title title
:body body
:app-icon (or (and avatar (plist-get (cdr avatar) ':file)) jabber-notifications-icon)
:app-icon (or (and avatar-hash (jabber-avatar-find-cached avatar-hash))
jabber-notifications-icon)
:app-name jabber-notifications-app
:category "jabber.message"
:timeout jabber-notifications-timeout)))
Expand Down

0 comments on commit 0951030

Please sign in to comment.