Commit c823ef6c authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

Unify display of URLs in status messages

Status messages in group chats and private chats are now displayed
in the same way as status messages in single chat windows. This
avoids trailing brackets to be appended to a possible hyperlink inside
the status message. Fixes #8470
parent ac4bde04
Pipeline #3499 passed with stages
in 2 minutes and 36 seconds
...@@ -1854,7 +1854,7 @@ class GroupchatControl(ChatControlBase): ...@@ -1854,7 +1854,7 @@ class GroupchatControl(ChatControlBase):
nick = event.properties.muc_nickname nick = event.properties.muc_nickname
status = event.properties.status status = event.properties.status
status = '' if status is None else ' (%s)' % status status = '' if status is None else ' - %s' % status
show = helpers.get_uf_show(event.properties.show.value) show = helpers.get_uf_show(event.properties.show.value)
status_default = app.config.get('print_status_muc_default') status_default = app.config.get('print_status_muc_default')
......
...@@ -132,7 +132,7 @@ class PrivateChatControl(ChatControl): ...@@ -132,7 +132,7 @@ class PrivateChatControl(ChatControl):
nick = event.properties.muc_nickname nick = event.properties.muc_nickname
status = event.properties.status status = event.properties.status
status = '' if status is None else ' (%s)' % status status = '' if status is None else ' - %s' % status
show = helpers.get_uf_show(event.properties.show.value) show = helpers.get_uf_show(event.properties.show.value)
status_default = app.config.get('print_status_muc_default') status_default = app.config.get('print_status_muc_default')
......
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