bar_items: Dont' display own user as typing.

This commit is contained in:
Damir Jelić 2018-11-29 15:54:43 +01:00
parent 1298a2c910
commit 45ebb921a9

View file

@ -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))