Commit 04b86a7b authored by Philipp Hörist's avatar Philipp Hörist

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
parent ffe8ee80
......@@ -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:
......
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