From 45ebb921a94fc66b0a194840ebb438ed5c978084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 29 Nov 2018 15:54:43 +0100 Subject: [PATCH] bar_items: Dont' display own user as typing. --- matrix/bar_items.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matrix/bar_items.py b/matrix/bar_items.py index b6ea602..96d8eba 100644 --- a/matrix/bar_items.py +++ b/matrix/bar_items.py @@ -146,9 +146,15 @@ def matrix_bar_typing_notices_cb(data, item, window, buffer, extra_info): nicks = [] for user_id in room.typing_users: + if user_id == room.own_user_id: + continue + nick = room_buffer.displayed_nicks.get(user_id, user_id) nicks.append(nick) + if not nicks: + return "" + msg = "{}{}".format( G.CONFIG.look.bar_item_typing_notice_prefix, ", ".join(sorted(nicks))