Fix room firing incorrect event
This commit is contained in:
parent
2215e75c34
commit
66b56a450e
2 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
- add docstrings to `Bot`
|
- add docstrings to `Bot`
|
||||||
- change `KILL_REPLY` and `RESTART_REPLY` to be optional in `Bot`
|
- change `KILL_REPLY` and `RESTART_REPLY` to be optional in `Bot`
|
||||||
- fix imports
|
- fix imports
|
||||||
|
- fix room firing incorrect event
|
||||||
- update echobot example to newest version
|
- update echobot example to newest version
|
||||||
- update example gitignore to newest version
|
- update example gitignore to newest version
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -180,10 +180,10 @@ class Room:
|
||||||
if nick is not None and self._session is not None:
|
if nick is not None and self._session is not None:
|
||||||
self._session = self.session.with_nick(nick)
|
self._session = self.session.with_nick(nick)
|
||||||
|
|
||||||
# Send "session" event
|
# Send "snapshot" event
|
||||||
messages = [LiveMessage.from_data(self, msg_data)
|
messages = [LiveMessage.from_data(self, msg_data)
|
||||||
for msg_data in data["log"]]
|
for msg_data in data["log"]]
|
||||||
self._events.fire("session", messages)
|
self._events.fire("snapshot", messages)
|
||||||
|
|
||||||
self._snapshot_received = True
|
self._snapshot_received = True
|
||||||
await self._try_set_connected()
|
await self._try_set_connected()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue