matrix: Room display name calculation method is now a property.

This commit is contained in:
Damir Jelić 2019-01-19 12:37:05 +01:00
parent 9644ae5b65
commit c9ddcf7e78
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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