support systemwide picker

cleanup
This commit is contained in:
Nihaal Sharma committed 2026-07-10 10:58:10 +01:00
1 parent 86ed614929
commit 5ee70d15b6
5 files changed
+27 -31

No files matched your search

+4 -5
View File
@@ -79,9 +79,8 @@ extension StickerProtocol {
}
}
nonisolated
func downloadImage() async throws {
if let data = try? await Data(contentsOf: localImageURL),
nonisolated func downloadImage() async throws {
if let data = try? Data(contentsOf: localImageURL),
let _ = UIImage(data: data) {
return
}
@@ -90,11 +89,11 @@ extension StickerProtocol {
let targetSize = CGSize(width: 100, height: 100)
if let uiImage = UIImage(data: data),
await localImageURLString.suffix(4) != ".gif" {
localImageURLString.suffix(4) != ".gif" {
data = await resize(image: uiImage, to: targetSize).pngData()!
}
try! await data.write(to: localImageURL)
try! data.write(to: localImageURL)
}
func deleteImage() {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.