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>
This commit is contained in:
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

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();