ssb: Fix closing self-chat.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled

This commit is contained in:
2025-08-20 19:28:23 -04:00
parent c1507adac5
commit 61501a9b64
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&rXz3M/3YLTkFQ8QkOJJItKAgBsu1aXBkQjy7M6/+I9w=.sha256" "previous": "&UEIA5OmcpNMsBGeyxmgTdib+tkpPgr62iXdTlt1aH9U=.sha256"
} }

View File

@@ -435,12 +435,17 @@ class TfTabNewsFeedElement extends LitElement {
close_private_chat() { close_private_chat() {
this.mark_all_read(); this.mark_all_read();
console.log(this.hash);
this.dispatchEvent( this.dispatchEvent(
new CustomEvent('closeprivatechat', { new CustomEvent('closeprivatechat', {
bubbles: true, bubbles: true,
composed: true, composed: true,
detail: { detail: {
key: JSON.stringify(this.hash.substring('#🔐'.length).split(',')), key: JSON.stringify(
this.hash == '#🔐'
? []
: this.hash.substring('#🔐'.length).split(',')
),
}, },
}) })
); );