mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Format swtich case properly
This commit is contained in:
parent
fee6447e22
commit
b134fa7409
@ -28,15 +28,21 @@ import type {TileView} from "./TimelineView";
|
|||||||
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) {
|
||||||
case "gap": return GapView;
|
case "gap":
|
||||||
case "announcement": return AnnouncementView;
|
return GapView;
|
||||||
|
case "announcement":
|
||||||
|
return AnnouncementView;
|
||||||
case "message":
|
case "message":
|
||||||
case "message-status":
|
case "message-status":
|
||||||
return TextMessageView;
|
return TextMessageView;
|
||||||
case "image": return ImageView;
|
case "image":
|
||||||
case "video": return VideoView;
|
return ImageView;
|
||||||
case "file": return FileView;
|
case "video":
|
||||||
case "missing-attachment": return MissingAttachmentView;
|
return VideoView;
|
||||||
|
case "file":
|
||||||
|
return FileView;
|
||||||
|
case "missing-attachment":
|
||||||
|
return MissingAttachmentView;
|
||||||
case "redacted":
|
case "redacted":
|
||||||
return RedactedView;
|
return RedactedView;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user