diff --git a/shard.yml b/shard.yml index fae17e2..4571f75 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: caridina -version: 0.10.4 +version: 0.10.5 authors: - Alexandre Morignot diff --git a/src/caridina.cr b/src/caridina.cr index cdd9bdc..55ccee9 100644 --- a/src/caridina.cr +++ b/src/caridina.cr @@ -3,7 +3,7 @@ require "./caridina/connection" module Caridina - VERSION = "0.10.4" + VERSION = "0.10.5" Log = ::Log.for(self) end diff --git a/src/caridina/responses/sync.cr b/src/caridina/responses/sync.cr index ad7e44d..cc3d566 100644 --- a/src/caridina/responses/sync.cr +++ b/src/caridina/responses/sync.cr @@ -8,7 +8,7 @@ module Caridina::Responses include JSON::Serializable getter join : Hash(String, JoinedRoom) - getter invite : Hash(String, InvitedRoom) + getter invite : Hash(String, InvitedRoom)? end struct JoinedRoom diff --git a/src/caridina/syncer.cr b/src/caridina/syncer.cr index ccb3048..b18231c 100644 --- a/src/caridina/syncer.cr +++ b/src/caridina/syncer.cr @@ -40,7 +40,7 @@ class Caridina::Syncer end end - rooms.invite.each do |room_id, room| + rooms.invite.try &.each do |room_id, room| room.invite_state.events.each do |event| event.room_id = room_id dispatch(event, Source::InvitedRooms)