Commit 25ddc9d2 authored by Daniel Brötzmann's avatar Daniel Brötzmann

VcardWindow: Fix resource string if resource is missing

Fixes: #10273
parent a68337a4
Pipeline #7322 passed with stages
in 8 minutes and 28 seconds
......@@ -398,10 +398,13 @@ def fill_jabber_page(self):
tt_text = _("There is no pending subscription request.")
ask_label.set_tooltip_text(tt_text)
resources = '%s (%s)' % (self.contact.resource, str(
self.contact.priority))
uf_resources = self.contact.resource + _(' resource with priority ')\
+ str(self.contact.priority)
resources = ''
uf_resources = ''
if self.contact.resource:
resources = '%s (%s)' % (self.contact.resource, str(
self.contact.priority))
uf_resources = self.contact.resource + _(' resource with priority ')\
+ str(self.contact.priority)
if not self.contact.status:
self.contact.status = ''
......
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