From 67714040e735565c161aabe2467bf38dafb23e21 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 17 May 2021 12:14:15 +0200 Subject: [PATCH] rename BaseTextMessageTile to BaseTextTile --- .../tiles/{BaseTextMessageTile.js => BaseTextTile.js} | 4 ++-- src/domain/session/room/timeline/tiles/EncryptedEventTile.js | 4 ++-- src/domain/session/room/timeline/tiles/TextTile.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/domain/session/room/timeline/tiles/{BaseTextMessageTile.js => BaseTextTile.js} (93%) diff --git a/src/domain/session/room/timeline/tiles/BaseTextMessageTile.js b/src/domain/session/room/timeline/tiles/BaseTextTile.js similarity index 93% rename from src/domain/session/room/timeline/tiles/BaseTextMessageTile.js rename to src/domain/session/room/timeline/tiles/BaseTextTile.js index e92e326a..401fd719 100644 --- a/src/domain/session/room/timeline/tiles/BaseTextMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseTextTile.js @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {MessageTile} from "./MessageTile.js"; +import {BaseMessageTile} from "./BaseMessageTile.js"; import {stringAsBody} from "../MessageBody.js"; -export class BaseTextMessageTile extends MessageTile { +export class BaseTextTile extends BaseMessageTile { constructor(options) { super(options); this._messageBody = null; diff --git a/src/domain/session/room/timeline/tiles/EncryptedEventTile.js b/src/domain/session/room/timeline/tiles/EncryptedEventTile.js index ceb771c2..155ce4a9 100644 --- a/src/domain/session/room/timeline/tiles/EncryptedEventTile.js +++ b/src/domain/session/room/timeline/tiles/EncryptedEventTile.js @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {BaseTextMessageTile} from "./BaseTextMessageTile.js"; +import {BaseTextTile} from "./BaseTextTile.js"; import {UpdateAction} from "../UpdateAction.js"; -export class EncryptedEventTile extends BaseTextMessageTile { +export class EncryptedEventTile extends BaseTextTile { updateEntry(entry, params) { const parentResult = super.updateEntry(entry, params); // event got decrypted, recreate the tile and replace this one with it diff --git a/src/domain/session/room/timeline/tiles/TextTile.js b/src/domain/session/room/timeline/tiles/TextTile.js index fdfdd32f..07e7ce8f 100644 --- a/src/domain/session/room/timeline/tiles/TextTile.js +++ b/src/domain/session/room/timeline/tiles/TextTile.js @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {BaseTextMessageTile} from "./BaseTextMessageTile.js"; +import {BaseTextTile} from "./BaseTextTile.js"; import {parsePlainBody} from "../MessageBody.js"; -export class TextTile extends BaseTextMessageTile { +export class TextTile extends BaseTextTile { _getBodyAsString() { const content = this._getContent(); let body = content?.body || "";