Can retrieve room media
This commit is contained in:
@@ -67,4 +67,17 @@ export class MatrixApiEvent {
|
||||
})
|
||||
).data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Matrix event file URL
|
||||
*/
|
||||
static GetEventFileURL(
|
||||
room: Room,
|
||||
event_id: string,
|
||||
thumbnail: boolean
|
||||
): string {
|
||||
return `${APIClient.ActualBackendURL()}/matrix/room/${
|
||||
room.id
|
||||
}/event/${event_id}/file?thumbnail=${thumbnail}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user