From 3d2c88c201764977dafd914b6d0840e1d3b24087 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 19 Mar 2023 23:31:08 +0000 Subject: [PATCH] Group contact messages, and try to fix some messages overflowing width. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4238 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/ssb/tf-app.js | 15 ++------------- apps/ssb/tf-message.js | 18 +++++++++++++----- apps/ssb/tf-news.js | 22 +++++++++++++++++++++- apps/ssb/tf-user.js | 13 +++++++++---- 4 files changed, 45 insertions(+), 23 deletions(-) diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js index e444ef93..de05b58a 100644 --- a/apps/ssb/tf-app.js +++ b/apps/ssb/tf-app.js @@ -135,9 +135,9 @@ class TfElement extends LitElement { cache.last_row_id = max_row_id; let store = JSON.stringify(cache); /* 2023-02-20: Exceeding message size. */ - if (store.length < 512 * 1024) { + //if (store.length < 512 * 1024) { await tfrpc.rpc.databaseSet('following', store); - } + //} return [result, cache.following]; } @@ -280,16 +280,6 @@ class TfElement extends LitElement { } } - add_fake_news() { - this.unread = [{ - author: this.whoami, - placeholder: true, - id: '%fake_id', - text: 'text', - content: 'hello', - }, ...this.unread]; - } - async set_tab(tab) { this.tab = tab; if (tab === 'news') { @@ -326,7 +316,6 @@ class TfElement extends LitElement { return html` ${this.render_id_picker()} ${tabs} - ${contents} `; } diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index ae9551c8..54e2096c 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -148,7 +148,7 @@ class TfMessageElement extends LitElement { } else if (mention.link?.startsWith('&') && mention.name?.startsWith('video:')) { return html` -