From e2388afb51c2e3f509268204a0426dabe3376fa7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 14 May 2019 10:53:42 +0100 Subject: [PATCH] consistent naming between serialize and deserialize modules --- src/components/views/elements/MessageEditor.js | 2 +- src/editor/{parse-event.js => deserialize.js} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/editor/{parse-event.js => deserialize.js} (98%) diff --git a/src/components/views/elements/MessageEditor.js b/src/components/views/elements/MessageEditor.js index 62f4d442a7..db0ddb74b2 100644 --- a/src/components/views/elements/MessageEditor.js +++ b/src/components/views/elements/MessageEditor.js @@ -22,7 +22,7 @@ import EditorModel from '../../../editor/model'; import {setCaretPosition} from '../../../editor/caret'; import {getCaretOffsetAndText} from '../../../editor/dom'; import {htmlSerialize, textSerialize, requiresHtml} from '../../../editor/serialize'; -import parseEvent from '../../../editor/parse-event'; +import {parseEvent} from '../../../editor/deserialize'; import Autocomplete from '../rooms/Autocomplete'; // import AutocompleteModel from '../../../editor/autocomplete'; import {PartCreator} from '../../../editor/parts'; diff --git a/src/editor/parse-event.js b/src/editor/deserialize.js similarity index 98% rename from src/editor/parse-event.js rename to src/editor/deserialize.js index 303f234f9e..969393b4d9 100644 --- a/src/editor/parse-event.js +++ b/src/editor/deserialize.js @@ -54,7 +54,7 @@ function parseHtmlMessage(html) { return parts; } -export default function parseEvent(event) { +export function parseEvent(event) { const content = event.getContent(); if (content.format === "org.matrix.custom.html") { return parseHtmlMessage(content.formatted_body);