Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4c737b26c0 |
@@ -596,8 +596,6 @@ export const splitRoomId = (id: string) => id.split("'")
|
||||
export const hasNip29 = (relay?: RelayProfile) =>
|
||||
Boolean(relay?.supported_nips?.map?.(String)?.includes?.("29"))
|
||||
|
||||
const getRoomDeleteId = (event: TrustedEvent) => getTagValue("h", event.tags)
|
||||
|
||||
export const roomMetaEventsByIdByUrl = deriveEventsByIdByUrl({
|
||||
tracker,
|
||||
repository,
|
||||
@@ -612,9 +610,7 @@ export const roomsByUrl = derived(roomMetaEventsByIdByUrl, roomMetaEventsByIdByU
|
||||
const deletedByH = new Map<string, number>()
|
||||
|
||||
for (const event of deleteEvents) {
|
||||
const h = getRoomDeleteId(event)
|
||||
|
||||
if (h) {
|
||||
for (const h of getTagValues("h", event.tags)) {
|
||||
deletedByH.set(h, max([deletedByH.get(h), event.created_at]))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user