Refactor: use relay-provided member lists as source of truth #191

Merged
hodlbod merged 8 commits from :dev into dev 2026-04-13 21:12:51 +00:00
Showing only changes of commit 1bac21ba2a - Show all commits
+2 -2
View File
2
@@ -286,7 +286,7 @@ const syncSpace = (url: string, rooms: string[]) => {
{kinds: [MESSAGE, ...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],
},
{kinds: [PollResponse], since},
@@ -302,7 +302,7 @@ const syncSpace = (url: string, rooms: string[]) => {
// Fetch authoritative member lists and room metadata.
hodlbod marked this conversation as resolved Outdated
Outdated
Review

Remove the comment

Remove the comment
const relayKinds = [RELAY_MEMBERS]
const roomMetaKinds = [ROOM_META, ROOM_ADMINS, ROOM_MEMBERS, LIVEKIT_PARTICIPANTS]
const roomDeleteKinds = [ROOM_DELETE]
const roomDeleteKinds = [ROOM_DELETE, ROOM_JOIN, ROOM_LEAVE]
pullAndListen({
url,