fix: cleanup fn

This commit is contained in:
Alejandro Gomez 2023-06-25 21:57:50 +02:00
parent 64cf924131
commit b241738f67
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -146,6 +146,7 @@ function ChatZap({ ev }: { ev: TaggedRawEvent }) {
parsed.sender
) {
System.ProfileLoader.TrackMetadata(parsed.sender);
return () => System.ProfileLoader.UntrackMetadata(parsed.sender);
}
}, [parsed]);