This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
hydrogen-web/src/domain/session/room/timeline/tiles/ImageTile.js

27 lines
535 B
JavaScript
Raw Normal View History

import {MessageTile} from "./MessageTile.js";
2019-03-09 05:10:03 +05:30
export class ImageTile extends MessageTile {
2019-03-09 05:10:03 +05:30
constructor(options) {
super(options);
// we start loading the image here,
// and call this._emitUpdate once it's loaded?
// or maybe we have an becameVisible() callback on tiles where we start loading it?
}
get src() {
return "";
}
get width() {
return 200;
}
get height() {
return 200;
}
get label() {
return "this is an image";
}
2019-03-09 05:10:03 +05:30
}