diff options
Diffstat (limited to 'gajim/gtk/start_chat.py')
-rw-r--r-- | gajim/gtk/start_chat.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gajim/gtk/start_chat.py b/gajim/gtk/start_chat.py index 42c7d1732..37dc8e4db 100644 --- a/gajim/gtk/start_chat.py +++ b/gajim/gtk/start_chat.py @@ -59,6 +59,7 @@ from gajim.gtk.tooltips import ContactTooltip from gajim.gtk.util import AccountBadge from gajim.gtk.util import GajimPopover from gajim.gtk.util import get_icon_name +from gajim.gtk.util import IdleBadge ContactT = BareContact | GroupchatContact @@ -812,6 +813,12 @@ class ContactRow(Gtk.ListBoxRow): account_badge.set_valign(Gtk.Align.START) account_badge.set_hexpand(True) name_box.add(account_badge) + + if contact and not contact.is_groupchat: + if idle := contact.idle_datetime: + idle_badge = IdleBadge(idle) + name_box.add(idle_badge) + box.add(name_box) if contact and not contact.is_groupchat and (status := contact.status): |