From c823ef6cebf77dfa52fa3737e46dde7da48b85d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Br=C3=B6tzmann?= Date: Mon, 13 May 2019 12:21:40 +0200 Subject: [PATCH] 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 --- gajim/groupchat_control.py | 2 +- gajim/privatechat_control.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gajim/groupchat_control.py b/gajim/groupchat_control.py index 4bc00ce29..e58a5885e 100644 --- a/gajim/groupchat_control.py +++ b/gajim/groupchat_control.py @@ -1854,7 +1854,7 @@ class GroupchatControl(ChatControlBase): nick = event.properties.muc_nickname 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) status_default = app.config.get('print_status_muc_default') diff --git a/gajim/privatechat_control.py b/gajim/privatechat_control.py index 831530af3..5d56a1fa7 100644 --- a/gajim/privatechat_control.py +++ b/gajim/privatechat_control.py @@ -132,7 +132,7 @@ class PrivateChatControl(ChatControl): nick = event.properties.muc_nickname 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) status_default = app.config.get('print_status_muc_default')