Skip to content

Commit

Permalink
fix: after merge, deleted IAP part
Browse files Browse the repository at this point in the history
fix: [iOS] On Course "Home" tab the row height
  • Loading branch information
rnr committed Oct 1, 2024
1 parent 37f2a14 commit 9733568
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,6 @@ public class CourseContainerViewModel: BaseCourseViewModel {
let courseStructure = try await getCourseStructure(courseID: courseID)
await setDownloadsStates(courseStructure: courseStructure)
self.courseStructure = courseStructure
let type = type(for: courseStructure?.coursewareAccessDetails?.coursewareAccess)
shouldShowUpgradeButton = type == nil && courseStructure?.isUpgradeable ?? false
updateMenuBarVisibility()

if isInternetAvaliable {
NotificationCenter.default.post(name: .getCourseDates, object: courseID)
Expand Down Expand Up @@ -783,7 +780,7 @@ public class CourseContainerViewModel: BaseCourseViewModel {
func stopAllDownloads() async {
do {
try await manager.cancelAllDownloading()
await setDownloadsStates()
await setDownloadsStates(courseStructure: self.courseStructure)
await getDownloadingProgress()
} catch {
errorMessage = CoreLocalization.Error.unknownError
Expand Down

0 comments on commit 9733568

Please sign in to comment.