fix: auto-open chat with conversation ID, show listing title and time in messages
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user