Trim room member sync
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user