Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 25ddc9d2 by wurstsalat at 2021-02-14T15:19:07+01:00 VcardWindow: Fix resource string if resource is missing
Fixes: #10273
- - - - -
1 changed file:
- gajim/vcard.py
Changes:
===================================== gajim/vcard.py ===================================== @@ -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 = ''
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/25ddc9d2e49a815edacddbfcaff5375b9...