Skip to content

Commit

Permalink
Revert "fix: Respect student_view_multi_device key for HTML xBlocks…
Browse files Browse the repository at this point in the history
… in the …"

This reverts commit 64120fb.
  • Loading branch information
shafqat-muneer authored Sep 19, 2024
1 parent 64120fb commit ad7b085
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Course/Course/Presentation/Unit/CourseUnitViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ public enum LessonType: Equatable {
switch block.type {
case .course, .chapter, .vertical, .sequential:
return .unknown(block.studentUrl)
case .html, .unknown:
case .unknown:
if let multiDevice = block.multiDevice, multiDevice {
return .web(url: block.studentUrl, injections: mandatoryInjections)
} else {
return .unknown(block.studentUrl)
}
case .html:
return .web(url: block.studentUrl, injections: mandatoryInjections)
case .discussion:
return .discussion(block.topicId ?? "", block.id, block.displayName)
case .video:
Expand Down

0 comments on commit ad7b085

Please sign in to comment.