Fix room firing incorrect event

This commit is contained in:
Joscha 2019-06-21 07:21:50 +00:00
parent 2215e75c34
commit 66b56a450e
2 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@
- add docstrings to `Bot`
- change `KILL_REPLY` and `RESTART_REPLY` to be optional in `Bot`
- fix imports
- fix room firing incorrect event
- update echobot example to newest version
- update example gitignore to newest version

View file

@ -180,10 +180,10 @@ class Room:
if nick is not None and self._session is not None:
self._session = self.session.with_nick(nick)
# Send "session" event
# Send "snapshot" event
messages = [LiveMessage.from_data(self, msg_data)
for msg_data in data["log"]]
self._events.fire("session", messages)
self._events.fire("snapshot", messages)
self._snapshot_received = True
await self._try_set_connected()