From 2992d8ec12e6b6e6d53971a7ac87216b24ab8004 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 16 Feb 2024 01:09:08 +0000 Subject: [PATCH] Fix showing decrypted messages. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4849 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/ssb.json | 2 +- apps/ssb/tf-message.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/ssb.json b/apps/ssb.json index 997239a1..6466712c 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&n2SUkcUV+XP2Idz+bMaU8WrfN7+m63zUoe6nebkHI+M=.sha256" + "previous": "&DUxMMCJcuhm6S9jg/eKgEyWodkITu6Tg9g5I5wgLWFU=.sha256" } \ No newline at end of file diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index 1b31c78e..3a98b952 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -365,6 +365,9 @@ class TfMessageElement extends LitElement { case 'message': body = unsafeHTML(tfutils.markdown(content.text)); break; + case 'decrypted': + body = html`
${JSON.stringify(content, null, 2)}
`; + break; } let content_warning = html`
this.toggle_expanded(':cw')}>

${content.contentWarning}