base: Fix the wasm example

master
Damir Jelić 2021-04-29 12:46:21 +02:00
parent b3cf2c5899
commit c720abfa87
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ impl WasmBot {
for (room_id, room) in response.rooms.join { for (room_id, room) in response.rooms.join {
for event in room.timeline.events { for event in room.timeline.events {
if let AnySyncRoomEvent::Message(AnySyncMessageEvent::RoomMessage(ev)) = event { if let Ok(AnySyncRoomEvent::Message(AnySyncMessageEvent::RoomMessage(ev))) = event.event.deserialize() {
self.on_room_message(&room_id, &ev).await self.on_room_message(&room_id, &ev).await
} }
} }