merge: upstream Element Call v0.28.0 (cinny #201) #61

Merged
jared merged 197 commits from lotus-upstream-v0.28.0 into lotus 2026-10-24 01:14:32 -04:00
Showing only changes of commit 486ecbfda0 - Show all commits
+3 -13
View File
@@ -64,12 +64,6 @@ export interface ElementCallHostBridge {
* Defaults to true.
*/
readonly supportsReactions?: boolean;
/**
* Fetches media on Element Call's behalf, for hosts that do not want it
* touching the homeserver's media endpoints itself. Absent, Element Call
* fetches media with the client it was given.
*/
downloadMedia?(mxcUri: string): Promise<Blob>;
}
/**
@@ -164,13 +158,9 @@ export function useComponentHostBridge(
? undefined
: async (): Promise<void> => await close();
},
get downloadMedia() {
const downloadMedia = latest.current.downloadMedia;
return downloadMedia === undefined
? undefined
: async (mxcUri: string): Promise<Blob> =>
await downloadMedia(mxcUri);
},
// Not offered to a component host: the client it hands over holds the
// credentials to fetch media itself. A widget's client does not, which
// is what the internal bridge's `downloadMedia` is for.
get supportsReactions(): boolean {
return latest.current.supportsReactions ?? true;
},