Skip to content

Commit

Permalink
fixing a possible crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Aug 22, 2024
1 parent 115c0af commit d32babd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ final class PinnedEventsTimelineScreenCoordinator: CoordinatorProtocol {
actionsSubject.send(.displayRoomScreenWithFocussedPin(eventID: eventID))
// These other actions will not be handled in this view
case .displayEmojiPicker, .displayReportContent, .displayCameraPicker, .displayMediaPicker, .displayDocumentPicker, .displayLocationPicker, .displayPollForm, .displayMediaUploadPreviewScreen, .composer, .hasScrolled:
fatalError("The action: \(action) should not be handled in this coordinator")
// These actions are not handled in this coordinator
break
}
}
.store(in: &cancellables)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ final class RoomScreenCoordinator: CoordinatorProtocol {
case .hasScrolled(direction: let direction):
roomViewModel.timelineHasScrolled(direction: direction)
case .viewInRoomTimeline:
fatalError("The action: \(action) should not be handled in this coordinator")
fatalError("The action: \(action) should not be sent to this coordinator")
}
}
.store(in: &cancellables)
Expand Down

0 comments on commit d32babd

Please sign in to comment.