mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
rename BaseTextMessageTile to BaseTextTile
This commit is contained in:
parent
fa64fcce2d
commit
67714040e7
@ -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;
|
@ -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
|
||||
|
@ -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 || "";
|
||||
|
Loading…
Reference in New Issue
Block a user