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
This commit is contained in:
Daniel Brötzmann 2019-05-13 12:21:40 +02:00 committed by Philipp Hörist
parent ac4bde0447
commit c823ef6ceb
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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')