Trim room member sync

This commit is contained in:
nayan9617
2026-04-11 21:49:24 +05:30
parent 667e170351
commit 1bac21ba2a
+2 -2
View File
@@ -286,7 +286,7 @@ const syncSpace = (url: string, rooms: string[]) => {
{kinds: [MESSAGE, ...CONTENT_KINDS], since, "#h": [room]}, {kinds: [MESSAGE, ...CONTENT_KINDS], since, "#h": [room]},
makeCommentFilter(CONTENT_KINDS, {since, "#h": [room]}), makeCommentFilter(CONTENT_KINDS, {since, "#h": [room]}),
{ {
kinds: [ROOM_DELETE, ROOM_JOIN, ROOM_LEAVE, ROOM_ADD_MEMBER, ROOM_REMOVE_MEMBER], kinds: [ROOM_DELETE, ROOM_JOIN, ROOM_LEAVE],
"#h": [room], "#h": [room],
}, },
{kinds: [PollResponse], since}, {kinds: [PollResponse], since},
@@ -302,7 +302,7 @@ const syncSpace = (url: string, rooms: string[]) => {
// Fetch authoritative member lists and room metadata. // Fetch authoritative member lists and room metadata.
const relayKinds = [RELAY_MEMBERS] const relayKinds = [RELAY_MEMBERS]
const roomMetaKinds = [ROOM_META, ROOM_ADMINS, ROOM_MEMBERS, LIVEKIT_PARTICIPANTS] const roomMetaKinds = [ROOM_META, ROOM_ADMINS, ROOM_MEMBERS, LIVEKIT_PARTICIPANTS]
const roomDeleteKinds = [ROOM_DELETE] const roomDeleteKinds = [ROOM_DELETE, ROOM_JOIN, ROOM_LEAVE]
pullAndListen({ pullAndListen({
url, url,