Fix name bar item for the server buffer.
The server buffer is a pointer to a buffer (that is a string in python) not a list like the room buffers. Don't use 'in' to check if the buffer belongs to the server, use 'is' instead.
This commit is contained in:
parent
e02a731809
commit
4a949b33a8
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ def matrix_bar_item_name(data, item, window, buffer, extra_info):
|
|||
color=W.color(color),
|
||||
name=room.alias)
|
||||
|
||||
elif buffer in server.server_buffer:
|
||||
elif buffer is server.server_buffer:
|
||||
color = ("status_name_ssl"
|
||||
if server.ssl_context.check_hostname else
|
||||
"status_name")
|
||||
|
|
Loading…
Reference in a new issue