Bump version, fix new messages thing
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user