buffer: Store the homeserver inside room buffers.

This commit is contained in:
Damir Jelić 2019-07-02 18:10:12 +02:00
parent 4c8ee2848b
commit 4c04f6319b
2 changed files with 3 additions and 2 deletions

View file

@ -849,8 +849,9 @@ class WeechatChannelBuffer(object):
class RoomBuffer(object):
def __init__(self, room, server_name, prev_batch):
def __init__(self, room, server_name, homeserver, prev_batch):
self.room = room
self.homeserver = homeserver
self._backlog_pending = False
self.prev_batch = prev_batch
self.joined = True

View file

@ -1628,7 +1628,7 @@ class MatrixServer(object):
def create_room_buffer(self, room_id, prev_batch):
room = self.client.rooms[room_id]
buf = RoomBuffer(room, self.name, prev_batch)
buf = RoomBuffer(room, self.name, self.homeserver, prev_batch)
if room.members_synced:
buf.members_fetched = True