mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
render should return nodes otherwise the mapView binding doesn't work
this broke e2ee messages appearing when decrypted
This commit is contained in:
parent
1c20556c8d
commit
f1aef6c034
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user