matrix: Room display name calculation method is now a property.
This commit is contained in:
parent
9644ae5b65
commit
c9ddcf7e78
3 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ def matrix_bar_item_name(data, item, window, buffer, extra_info):
|
|||
room = room_buffer.room
|
||||
|
||||
return "{color}{name}".format(
|
||||
color=W.color(color), name=room.display_name()
|
||||
color=W.color(color), name=room.display_name
|
||||
)
|
||||
|
||||
if buffer == server.server_buffer:
|
||||
|
|
|
@ -1065,7 +1065,7 @@ class RoomBuffer(object):
|
|||
self.update_buffer_name()
|
||||
|
||||
def update_buffer_name(self):
|
||||
room_name = self.room.display_name()
|
||||
room_name = self.room.display_name
|
||||
self.weechat_buffer.short_name = room_name
|
||||
|
||||
def _redact_line(self, event):
|
||||
|
|
|
@ -1062,7 +1062,7 @@ class MatrixServer(object):
|
|||
self.info(
|
||||
"You have been invited to {} {}({}{}{}){}"
|
||||
"{}".format(
|
||||
room.display_name(),
|
||||
room.display_name,
|
||||
W.color("chat_delimiters"),
|
||||
W.color("chat_channel"),
|
||||
room_id,
|
||||
|
|
Loading…
Reference in a new issue