diff --git a/apps/ssb.json b/apps/ssb.json index bee71513..42be2935 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&rXz3M/3YLTkFQ8QkOJJItKAgBsu1aXBkQjy7M6/+I9w=.sha256" + "previous": "&UEIA5OmcpNMsBGeyxmgTdib+tkpPgr62iXdTlt1aH9U=.sha256" } diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index eed1776c..8439fe48 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -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(',') + ), }, }) );