Fix membership status

This commit is contained in:
Jon Staab
2025-10-31 12:10:16 -07:00
parent 07660c9d44
commit 4f8609421c
3 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -826,7 +826,7 @@ export const deriveUserSpaceMembershipStatus = (url: string) =>
const isMember = $members.includes($pubkey)
for (const event of $events) {
if (event.pubkey !== $pubkey) {
if (!getPubkeyTagValues(event.tags).includes($pubkey!)) {
continue
}
@@ -854,7 +854,7 @@ export const deriveUserRoomMembershipStatus = (url: string, h: string) =>
const isMember = $members.includes($pubkey)
for (const event of $events) {
if (event.pubkey !== $pubkey) {
if (!getPubkeyTagValues(event.tags).includes($pubkey!)) {
continue
}