fixed menu, optional argumets for download and delete on hoarder

This commit is contained in:
Nihaal Sharma committed 2026-04-27 13:09:54 +01:00
1 parent c99bdce4a3
commit 29e8bd7e09
2 files changed
+21 -5

No files matched your search

+4 -2
View File
@@ -204,7 +204,8 @@ class EmojiHoarder: BaseHoarder {
await buildDownloadedStickers()
}
override nonisolated func download(emoji: any StickerProtocol, skipStoreIndex: Bool = false) async {
override nonisolated func download(emoji: (any StickerProtocol)?, skipStoreIndex: Bool = false) async {
guard let emoji else { return }
await super.download(emoji: emoji, skipStoreIndex: skipStoreIndex)
await MainActor.run {
@@ -224,7 +225,8 @@ class EmojiHoarder: BaseHoarder {
await buildDownloadedStickers()
}
nonisolated override func delete(emoji: any StickerProtocol, skipStoreIndex: Bool = false) async {
nonisolated override func delete(emoji: (any StickerProtocol)?, skipStoreIndex: Bool = false) async {
guard let emoji else { return }
await super.delete(emoji: emoji, skipStoreIndex: skipStoreIndex)
if !skipStoreIndex {
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.