Mostly fiddling with the connections tab.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4021 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-11-09 01:47:47 +00:00
parent 06529fddfb
commit 9ef9dadbb8
6 changed files with 31 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ class TfTabNewsElement extends LitElement {
let news = this.renderRoot?.getElementById('news');
if (news) {
console.log('injecting messages', news.messages);
news.messages = [...this.unread, ...news.messages];
news.messages = Object.values(Object.fromEntries([...this.unread, ...news.messages].map(x => [x.id, x])));
this.dispatchEvent(new CustomEvent('refresh'));
}
}