mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Fix views not being removed from message store backing
This uses the original interaction ID if available for cache eviction
This commit is contained in:
@ -638,6 +638,7 @@ class ViewStore:
|
||||
def remove_interaction_mapping(self, interaction_id: int) -> None:
|
||||
# This is called before re-adding the view
|
||||
self._views.pop(interaction_id, None)
|
||||
self._synced_message_views.pop(interaction_id, None)
|
||||
|
||||
def is_message_tracked(self, message_id: int) -> bool:
|
||||
return message_id in self._synced_message_views
|
||||
|
Reference in New Issue
Block a user