bar_items: Dont' display own user as typing.
This commit is contained in:
parent
1298a2c910
commit
45ebb921a9
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue