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 = []
|
nicks = []
|
||||||
|
|
||||||
for user_id in room.typing_users:
|
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)
|
nick = room_buffer.displayed_nicks.get(user_id, user_id)
|
||||||
nicks.append(nick)
|
nicks.append(nick)
|
||||||
|
|
||||||
|
if not nicks:
|
||||||
|
return ""
|
||||||
|
|
||||||
msg = "{}{}".format(
|
msg = "{}{}".format(
|
||||||
G.CONFIG.look.bar_item_typing_notice_prefix,
|
G.CONFIG.look.bar_item_typing_notice_prefix,
|
||||||
", ".join(sorted(nicks))
|
", ".join(sorted(nicks))
|
||||||
|
|
Loading…
Add table
Reference in a new issue