added a delete all images button

some other stuff
This commit is contained in:
neon443 committed 2025-10-31 16:23:05 +00:00
1 parent bf3ac0eb3b
commit a1a15c9cb8
4 files changed
+16 -11

No files matched your search

+7 -9
View File
@@ -47,9 +47,12 @@ struct StickerSlackTests {
@Test func deleteAllEmojis() async throws {
await withDiscardingTaskGroup { group in
for emoji in hoarder.emojis {
for i in hoarder.emojis.indices {
group.addTask {
emoji.deleteImage()
hoarder.emojis[i].deleteImage()
await MainActor.run {
hoarder.emojis[i].refresh()
}
}
}
}
@@ -143,12 +146,7 @@ struct PerformanceTests {
}
@Test func deleteAllImages() async throws {
await withDiscardingTaskGroup { group in
for emoji in hoarder.emojis {
group.addTask {
emoji.deleteImage()
}
}
}
try! await fakeDownloadAllStickers()
await hoarder.deleteAllStickers()
}
}
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.