Skip to content

Commit

Permalink
remove sound from cache on deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexedia committed Oct 11, 2024
1 parent ee80924 commit c7f6a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/utils/cache_helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit c7f6a7d

Please sign in to comment.