buffer: Store the homeserver inside room buffers.
This commit is contained in:
parent
4c8ee2848b
commit
4c04f6319b
2 changed files with 3 additions and 2 deletions
|
@ -849,8 +849,9 @@ class WeechatChannelBuffer(object):
|
||||||
|
|
||||||
|
|
||||||
class RoomBuffer(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.room = room
|
||||||
|
self.homeserver = homeserver
|
||||||
self._backlog_pending = False
|
self._backlog_pending = False
|
||||||
self.prev_batch = prev_batch
|
self.prev_batch = prev_batch
|
||||||
self.joined = True
|
self.joined = True
|
||||||
|
|
|
@ -1628,7 +1628,7 @@ class MatrixServer(object):
|
||||||
|
|
||||||
def create_room_buffer(self, room_id, prev_batch):
|
def create_room_buffer(self, room_id, prev_batch):
|
||||||
room = self.client.rooms[room_id]
|
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:
|
if room.members_synced:
|
||||||
buf.members_fetched = True
|
buf.members_fetched = True
|
||||||
|
|
Loading…
Reference in a new issue