ssb: Fix closing self-chat.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "tildefriends-app",
|
||||
"emoji": "🦀",
|
||||
"previous": "&rXz3M/3YLTkFQ8QkOJJItKAgBsu1aXBkQjy7M6/+I9w=.sha256"
|
||||
"previous": "&UEIA5OmcpNMsBGeyxmgTdib+tkpPgr62iXdTlt1aH9U=.sha256"
|
||||
}
|
||||
|
@@ -435,12 +435,17 @@ class TfTabNewsFeedElement extends LitElement {
|
||||
|
||||
close_private_chat() {
|
||||
this.mark_all_read();
|
||||
console.log(this.hash);
|
||||
this.dispatchEvent(
|
||||
new CustomEvent('closeprivatechat', {
|
||||
bubbles: true,
|
||||
composed: true,
|
||||
detail: {
|
||||
key: JSON.stringify(this.hash.substring('#🔐'.length).split(',')),
|
||||
key: JSON.stringify(
|
||||
this.hash == '#🔐'
|
||||
? []
|
||||
: this.hash.substring('#🔐'.length).split(',')
|
||||
),
|
||||
},
|
||||
})
|
||||
);
|
||||
|
Reference in New Issue
Block a user