rename BaseTextMessageTile to BaseTextTile

This commit is contained in:
Bruno Windels 2021-05-17 12:14:15 +02:00
parent fa64fcce2d
commit 67714040e7
3 changed files with 6 additions and 6 deletions

View file

@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {MessageTile} from "./MessageTile.js"; import {BaseMessageTile} from "./BaseMessageTile.js";
import {stringAsBody} from "../MessageBody.js"; import {stringAsBody} from "../MessageBody.js";
export class BaseTextMessageTile extends MessageTile { export class BaseTextTile extends BaseMessageTile {
constructor(options) { constructor(options) {
super(options); super(options);
this._messageBody = null; this._messageBody = null;

View file

@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {BaseTextMessageTile} from "./BaseTextMessageTile.js"; import {BaseTextTile} from "./BaseTextTile.js";
import {UpdateAction} from "../UpdateAction.js"; import {UpdateAction} from "../UpdateAction.js";
export class EncryptedEventTile extends BaseTextMessageTile { export class EncryptedEventTile extends BaseTextTile {
updateEntry(entry, params) { updateEntry(entry, params) {
const parentResult = super.updateEntry(entry, params); const parentResult = super.updateEntry(entry, params);
// event got decrypted, recreate the tile and replace this one with it // event got decrypted, recreate the tile and replace this one with it

View file

@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {BaseTextMessageTile} from "./BaseTextMessageTile.js"; import {BaseTextTile} from "./BaseTextTile.js";
import {parsePlainBody} from "../MessageBody.js"; import {parsePlainBody} from "../MessageBody.js";
export class TextTile extends BaseTextMessageTile { export class TextTile extends BaseTextTile {
_getBodyAsString() { _getBodyAsString() {
const content = this._getContent(); const content = this._getContent();
let body = content?.body || ""; let body = content?.body || "";