Skip to content

Commit

Permalink
Fix marker in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Staab committed Feb 6, 2025
1 parent 19f657e commit 466541c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Make reply indicator nicer
* Make share indicator nicer
* Improve feed loading
* (pending) Show marker for last activity in chat
* Show marker for last activity in chat

# 0.2.6

Expand Down
2 changes: 0 additions & 2 deletions src/app/components/Content.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@
const hasEllipsis = $derived(shortContent.some(isEllipsis))
const expandInline = $derived(hasEllipsis && expandMode === "inline")
const expandBlock = $derived(hasEllipsis && expandMode === "block")
$inspect(fullContent)
</script>

<div class="relative">
Expand Down
6 changes: 5 additions & 1 deletion src/routes/spaces/[relay]/[room]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,12 @@
})
onDestroy(() => {
setChecked($page.url.pathname)
cleanup()
// Sveltekit calls onDestroy at the beginning of the page load for some reason
setTimeout(() => {
setChecked($page.url.pathname)
}, 300)
})
</script>

Expand Down

0 comments on commit 466541c

Please sign in to comment.