From f1aef6c034868367457578268701dd4a032ce098 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 21 Oct 2020 12:10:42 +0200 Subject: [PATCH] render should return nodes otherwise the mapView binding doesn't work this broke e2ee messages appearing when decrypted --- src/ui/web/session/room/timeline/TextMessageView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/web/session/room/timeline/TextMessageView.js b/src/ui/web/session/room/timeline/TextMessageView.js index 741612a2..675b0035 100644 --- a/src/ui/web/session/room/timeline/TextMessageView.js +++ b/src/ui/web/session/room/timeline/TextMessageView.js @@ -16,6 +16,7 @@ limitations under the License. import {TemplateView} from "../../../general/TemplateView.js"; import {StaticView} from "../../../general/StaticView.js"; +import {text} from "../../../general/html.js"; import {renderMessage} from "./common.js"; export class TextMessageView extends TemplateView { @@ -31,7 +32,7 @@ class BodyView extends StaticView { render(t, value) { const lines = (value || "").split("\n"); if (lines.length === 1) { - return lines[0]; + return text(lines[0]); } const elements = []; for (const line of lines) {