Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim
Commits
04b86a7b
Commit
04b86a7b
authored
May 10, 2018
by
Philipp Hörist
Browse files
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/conversation_textview.py
View file @
04b86a7b
...
...
@@ -838,10 +838,9 @@ def detect_and_print_special_text(self, otext, other_tags, graphics=True,
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment