From 2486e7a90aefc4f1f88108c631612d6167055d6d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 24 Apr 2023 11:24:28 +0300 Subject: [PATCH] Fix default content in devtools event sender (#10699) It regressed from `{\n\n}` to an empty string in #10391 Signed-off-by: Tulir Asokan --- src/components/views/dialogs/devtools/Event.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/devtools/Event.tsx b/src/components/views/dialogs/devtools/Event.tsx index 3e0e681c22..c63659a915 100644 --- a/src/components/views/dialogs/devtools/Event.tsx +++ b/src/components/views/dialogs/devtools/Event.tsx @@ -182,7 +182,7 @@ export const TimelineEventEditor: React.FC = ({ mxEvent, onBack }) return cli.sendEvent(context.room.roomId, eventType, content || {}); }; - let defaultContent = ""; + let defaultContent: string | undefined; if (mxEvent) { const originalContent = mxEvent.getContent();