From b43f5bc674c941a6b1a8efc2960ce7e3fa3428b0 Mon Sep 17 00:00:00 2001 From: lovetox <philipp@hoerist.com> Date: Wed, 13 May 2020 21:07:45 +0200 Subject: [PATCH] RosterTooltip: Show correct account status Fixes #10100 --- gajim/common/helpers.py | 3 ++- gajim/gtk/tooltips.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gajim/common/helpers.py b/gajim/common/helpers.py index 1c08942954..41544f04fd 100644 --- a/gajim/common/helpers.py +++ b/gajim/common/helpers.py @@ -883,7 +883,8 @@ def get_accounts_info(): accounts = [] accounts_list = sorted(app.contacts.get_accounts()) for account in accounts_list: - status = app.connections[account].status + + status = get_connection_status(account) message = app.connections[account].status_message single_line = get_uf_show(status) if message is None: diff --git a/gajim/gtk/tooltips.py b/gajim/gtk/tooltips.py index b9fc154c58..299759554e 100644 --- a/gajim/gtk/tooltips.py +++ b/gajim/gtk/tooltips.py @@ -35,6 +35,7 @@ from gajim.common import app from gajim.common import helpers +from gajim.common.helpers import get_connection_status from gajim.common.const import AvatarSize from gajim.common.const import PEPEventType from gajim.common.i18n import Q_ @@ -308,7 +309,7 @@ def _populate_grid(self, contacts, account, typ): jid=jid, account=account, name=account_name, - show=connection.status, + show=get_connection_status(account), status=connection.status_message, resource=connection.get_own_jid().getResource(), priority=connection.priority) -- GitLab