Commit b62f07c7 authored by Sophie Herold's avatar Sophie Herold Committed by Philipp Hörist

Use account dict

parent 3ba80d41
Pipeline #2129 passed with stages
in 2 minutes and 7 seconds
......@@ -148,15 +148,14 @@ class NotificationAreaTooltip(StatusTable):
show_lock = True
else:
show_lock = False
account_label = app.get_account_label(acct['show'])
if message:
self.add_status_row(file_path, acct['show'],
GLib.markup_escape_text(account_label) + ' - ' + message,
show_lock=show_lock, indent=False)
GLib.markup_escape_text(acct['account_label']) + ' - ' + \
message, show_lock=show_lock, indent=False)
else:
self.add_status_row(file_path, acct['show'],
GLib.markup_escape_text(account_label), show_lock=show_lock,
indent=False)
GLib.markup_escape_text(acct['account_label']),
show_lock=show_lock, indent=False)
for line in acct['event_lines']:
self.add_text_row(' ' + line, 1)
......@@ -332,15 +331,14 @@ class RosterTooltip(Gtk.Window, StatusTable):
show_lock = True
else:
show_lock = False
account_label = app.get_account_label(acct['name'])
if message:
self.add_status_row(file_path, acct['show'],
GLib.markup_escape_text(account_label) + ' - ' + message,
show_lock=show_lock, indent=False)
GLib.markup_escape_text(acct['account_label']) + ' - ' + \
message, show_lock=show_lock, indent=False)
else:
self.add_status_row(file_path, acct['show'],
GLib.markup_escape_text(account_label), show_lock=show_lock,
indent=False)
GLib.markup_escape_text(acct['account_label']),
show_lock=show_lock, indent=False)
for line in acct['event_lines']:
self.add_text_row(' ' + line, 1)
......
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