forked from mystiq/hydrogen-web
actually add LocationView
This commit is contained in:
parent
052ff02571
commit
b578f4ac84
1 changed files with 2 additions and 1 deletions
|
@ -26,8 +26,9 @@ import {SimpleTile} from "../../../../../domain/session/room/timeline/tiles/Simp
|
||||||
import {GapView} from "./timeline/GapView.js";
|
import {GapView} from "./timeline/GapView.js";
|
||||||
|
|
||||||
export type TileView = GapView | AnnouncementView | TextMessageView |
|
export type TileView = GapView | AnnouncementView | TextMessageView |
|
||||||
ImageView | VideoView | FileView | MissingAttachmentView | RedactedView;
|
ImageView | VideoView | FileView | LocationView | MissingAttachmentView | RedactedView;
|
||||||
|
|
||||||
|
// TODO: this is what works for a ctor but doesn't actually check we constrain the returned ctors to the types above
|
||||||
type TileViewConstructor = (this: TileView, SimpleTile) => void;
|
type TileViewConstructor = (this: TileView, SimpleTile) => void;
|
||||||
export function viewClassForEntry(entry: SimpleTile): TileViewConstructor | undefined {
|
export function viewClassForEntry(entry: SimpleTile): TileViewConstructor | undefined {
|
||||||
switch (entry.shape) {
|
switch (entry.shape) {
|
||||||
|
|
Loading…
Reference in a new issue