iOS client for Grain grain.social
ios photography atproto
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: revert gallery detail async let to sequential await

The async let pair in GalleryDetailViewModel.load() trapped in
_swift_task_dealloc_specific on the error path, killing the app with
SIGABRT whenever opening a gallery detail and either fetch threw.

+2 -3
+2 -3
Grain/ViewModels/GalleryDetailViewModel.swift
··· 21 21 error = nil 22 22 23 23 do { 24 - async let galleryResponse = client.getGallery(uri: uri, auth: auth) 25 - async let commentsResponse = client.getGalleryThread(gallery: uri, auth: auth) 26 - let (galleryResult, commentsResult) = try await (galleryResponse, commentsResponse) 24 + let galleryResult = try await client.getGallery(uri: uri, auth: auth) 25 + let commentsResult = try await client.getGalleryThread(gallery: uri, auth: auth) 27 26 gallery = galleryResult.gallery 28 27 comments = commentsResult.comments 29 28 commentCursor = commentsResult.cursor