Dont show OOB uri if message body is the same

if oob uri == body there is no need to show the uri
below the message
This commit is contained in:
Philipp Hörist 2018-05-10 16:16:38 +02:00
parent ffe8ee8068
commit 04b86a7bd0
1 changed files with 3 additions and 4 deletions

View File

@ -838,10 +838,9 @@ class ConversationTextview(GObject.GObject):
except KeyError:
pass
else:
oob_desc = additional_data['gajim'].get('oob_desc', None)
if oob_desc is None:
oob_desc = _('URL:')
otext += '\n{} {}'.format(oob_desc, oob_url)
oob_desc = additional_data['gajim'].get('oob_desc', 'URL:')
if oob_url != otext:
otext += '\n{} {}'.format(oob_desc, oob_url)
# basic: links + mail + formatting is always checked (we like that)
if app.config.get('emoticons_theme') and graphics: