From 0495af13572bafc045359d953f68d7159c7c8dcf Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 23 Apr 2023 13:12:13 +0300 Subject: [PATCH] Fix default content in devtools event sender 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 3e0e681c225..c63659a9150 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();