Improve loading and notifications

This commit is contained in:
Jon Staab
2025-01-02 16:58:04 -08:00
parent f618e4e1f3
commit b6defe59a8
3 changed files with 20 additions and 7 deletions
+2 -2
View File
@@ -64,8 +64,8 @@
// Load recent messages for user rooms to help with a quick page transition
pullConservatively({relays, filters: rooms.map(r => ({kinds: [MESSAGE], "#h": [r], since}))})
// Listen for deletes that would apply to messages we already have
const sub = subscribe({relays, filters: [{kinds: [DELETE], since}]})
// Listen for deletes that would apply to messages we already have, and new groups
const sub = subscribe({relays, filters: [{kinds: [DELETE, GROUPS], since}]})
return () => {
sub.close()