forked from cory/tildefriends
		
	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:
		| @@ -1,5 +1,5 @@ | |||||||
| { | { | ||||||
|   "type": "tildefriends-app", |   "type": "tildefriends-app", | ||||||
|   "emoji": "🐌", |   "emoji": "🐌", | ||||||
|   "previous": "&n2SUkcUV+XP2Idz+bMaU8WrfN7+m63zUoe6nebkHI+M=.sha256" |   "previous": "&DUxMMCJcuhm6S9jg/eKgEyWodkITu6Tg9g5I5wgLWFU=.sha256" | ||||||
| } | } | ||||||
| @@ -365,6 +365,9 @@ class TfMessageElement extends LitElement { | |||||||
| 					case 'message': | 					case 'message': | ||||||
| 						body = unsafeHTML(tfutils.markdown(content.text)); | 						body = unsafeHTML(tfutils.markdown(content.text)); | ||||||
| 						break; | 						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` | 				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> | 					<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