Commit 52b2fd9e authored by Dan Pascu's avatar Dan Pascu

Publish icon and display name in offline state

parent a334ab88
......@@ -78,6 +78,8 @@ class BlinkPresenceState(object):
service.contact = str(self.account.uri)
service.timestamp = timestamp
service.capabilities = caps.ServiceCapabilities()
service.display_name = self.account.display_name or None
service.icon = "%s#blink-icon%s" % (self.account.xcap.icon.url, self.account.xcap.icon.etag) if self.account.xcap.icon is not None else None
doc.add(service)
else:
settings = SIPSimpleSettings()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment