fix: auto-open chat with conversation ID, show listing title and time in messages

This commit is contained in:
2026-02-10 07:58:16 +01:00
parent 73769d6af2
commit 8479fa2071
11 changed files with 73 additions and 22 deletions

View File

@@ -75,6 +75,16 @@ class PageListing extends HTMLElement {
this.render()
this.setupEventListeners()
this.updateMetaTags()
if (this.dataset.chat && auth.isLoggedIn()) {
const chatWidget = this.querySelector('chat-widget')
if (this.dataset.chat !== '1') {
chatWidget?.setAttribute('conversation-id', this.dataset.chat)
}
const dialog = this.querySelector('#contact-dialog')
dialog?.showModal()
chatWidget?.activate()
}
}
updateMetaTags() {