Fix showing decrypted messages.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4849 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		| @@ -365,6 +365,9 @@ class TfMessageElement extends LitElement { | ||||
| 					case 'message': | ||||
| 						body = unsafeHTML(tfutils.markdown(content.text)); | ||||
| 						break; | ||||
| 					case 'decrypted': | ||||
| 						body = html`<pre style="white-space: pre-wrap; overflow-wrap: anywhere">${JSON.stringify(content, null, 2)}</pre>`; | ||||
| 						break; | ||||
| 				} | ||||
| 				let content_warning = html` | ||||
| 					<div class="w3-panel w3-round-xlarge w3-blue" style="cursor: pointer" @click=${x => this.toggle_expanded(':cw')}><p>${content.contentWarning}</p></div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user