diff --git a/apps/ssb.json b/apps/ssb.json index aba133db..0f3468e7 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&3iV21tLQemlgG/Ui/WfYQyiprW/OBbFa8C3EKzPDt90=.sha256" + "previous": "&TTGzyovmfKozjELCGPBFLLEXQcpfaArOMmqzemvz9J8=.sha256" } diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index 0e245a79..a5ccb86c 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -789,60 +789,45 @@ class TfMessageElement extends LitElement { `); } else if (content.type == 'contact') { - return this.render_frame(html` -
-
- - is - ${content.blocking === true - ? 'blocking' - : content.blocking === false - ? 'no longer blocking' - : content.following === true - ? 'following' - : content.following === false - ? 'no longer following' - : '?'} - -
-
- -
- View Message - - ${this.drafts[this.message?.id] === undefined - ? html` - - ` - : undefined} + switch (this.format) { + case 'message': + default: + return this.render_frame(html` +
+
+ + is + ${content.blocking === true + ? 'blocking' + : content.blocking === false + ? 'no longer blocking' + : content.following === true + ? 'following' + : content.following === false + ? 'no longer following' + : '?'} + +
+ ${this.render_menu()} ${this.render_votes()} + ${this.render_actions()}
+ `); + break; + case 'raw': + return this.render_frame(html` + ${this.render_header()} +
${this.render_raw()}
+ ${this.render_votes()} ${this.render_actions()}
- ${this.render_votes()} ${this.render_actions()} -
- `); + `); + break; + } } else if (content.type == 'post') { let self = this; let body;