From c7f6a7d86f86776a360769a0f100fababd834ed7 Mon Sep 17 00:00:00 2001 From: Lexedia Date: Fri, 11 Oct 2024 14:33:53 +0200 Subject: [PATCH] remove sound from cache on deletion --- lib/src/utils/cache_helpers.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/utils/cache_helpers.dart b/lib/src/utils/cache_helpers.dart index c183cd25b..47371f252 100644 --- a/lib/src/utils/cache_helpers.dart +++ b/lib/src/utils/cache_helpers.dart @@ -297,7 +297,7 @@ extension CacheUpdates on NyxxRest { VoiceChannelEffectSendEvent() => null, SoundboardSoundCreateEvent(:final sound) => updateCacheWith(sound), SoundboardSoundUpdateEvent(:final sound) => updateCacheWith(sound), - SoundboardSoundDeleteEvent() => null, + SoundboardSoundDeleteEvent(:final sound?) => sound.manager.cache.remove(sound.id), MessagePollVoteAddEvent() => null, MessagePollVoteRemoveEvent() => null,