mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 02:47:06 +00:00
Filter out non-global chat from global chat
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
* Add signer status to profile page
|
||||
* Re-work bunker login flow
|
||||
* Only protect events if relay authenticates
|
||||
* Filter out non-global chats from global chat
|
||||
|
||||
# 1.2.2
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
})
|
||||
|
||||
onDestroy(() => {
|
||||
cleanup()
|
||||
cleanup?.()
|
||||
|
||||
// Sveltekit calls onDestroy at the beginning of the page load for some reason
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
return () => {
|
||||
setChecked($page.url.pathname)
|
||||
cleanup()
|
||||
cleanup?.()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<script lang="ts">
|
||||
import {readable} from "svelte/store"
|
||||
import {onMount, onDestroy} from "svelte"
|
||||
import {page} from "$app/stores"
|
||||
import type {Readable} from "svelte/store"
|
||||
import {readable} from "svelte/store"
|
||||
import {now, formatTimestampAsDate} from "@welshman/lib"
|
||||
import type {TrustedEvent, EventContent} from "@welshman/util"
|
||||
import {makeEvent, MESSAGE, DELETE} from "@welshman/util"
|
||||
import {makeEvent, getTag, MESSAGE, DELETE} from "@welshman/util"
|
||||
import {pubkey, publishThunk} from "@welshman/app"
|
||||
import {slide, fade, fly} from "@lib/transition"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
@@ -123,6 +123,10 @@
|
||||
continue
|
||||
}
|
||||
|
||||
if (getTag("h", event.tags)) {
|
||||
continue
|
||||
}
|
||||
|
||||
const date = formatTimestampAsDate(event.created_at)
|
||||
|
||||
if (
|
||||
@@ -194,7 +198,7 @@
|
||||
})
|
||||
|
||||
onDestroy(() => {
|
||||
cleanup()
|
||||
cleanup?.()
|
||||
|
||||
// Sveltekit calls onDestroy at the beginning of the page load for some reason
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
})
|
||||
|
||||
return () => {
|
||||
cleanup()
|
||||
cleanup?.()
|
||||
setChecked($page.url.pathname)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
})
|
||||
|
||||
return () => {
|
||||
cleanup()
|
||||
cleanup?.()
|
||||
setChecked($page.url.pathname)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user