Bump version, fix new messages thing

This commit is contained in:
Jon Staab
2025-05-09 12:26:05 -07:00
parent 4d10fe7cc0
commit e94aa3c119
7 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -66,7 +66,7 @@
</div>
<ProfileInfo {pubkey} {url} />
<ModalFooter>
<Button onclick={back} class="btn btn-link hidden md:block">
<Button onclick={back} class="hidden md:btn md:btn-link">
<Icon icon="alt-arrow-left" />
Go back
</Button>
-2
View File
@@ -58,8 +58,6 @@
let settings = $state({...$userSettingValues})
let mutedPubkeys = $state(getPubkeyTagValues(getListTags($userMutes)))
let blossomServers = $state(getTagValues("server", getListTags($userBlossomServers)))
$inspect(blossomServers)
</script>
<form class="content column gap-4" {onsubmit}>
@@ -42,6 +42,7 @@
import {pushToast} from "@app/toast"
const {room = GENERAL} = $page.params
const mounted = now()
const lastChecked = $checked[$page.url.pathname]
const url = decodeRelay($page.params.relay)
const filter = {kinds: [MESSAGE], "#h": [room]}
@@ -170,7 +171,8 @@
!newMessagesSeen &&
adjustedLastChecked &&
event.pubkey !== $pubkey &&
event.created_at > adjustedLastChecked
event.created_at > adjustedLastChecked &&
event.created_at < mounted
) {
elements.push({type: "new-messages", id: "new-messages"})
newMessagesSeen = true