Fix default content in devtools event sender (#10699)

It regressed from `{\n\n}` to an empty string in #10391

Signed-off-by: Tulir Asokan <tulir@maunium.net>
pull/28217/head
Tulir Asokan 2023-04-24 11:24:28 +03:00 committed by GitHub
parent ca102c4d36
commit 2486e7a90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ export const TimelineEventEditor: React.FC<IEditorProps> = ({ mxEvent, onBack })
return cli.sendEvent(context.room.roomId, eventType, content || {});
};
let defaultContent = "";
let defaultContent: string | undefined;
if (mxEvent) {
const originalContent = mxEvent.getContent();