Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/avatars.md

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ devAssets
*.tfbackend
!*.tfbackend.example
crash.log
build.sh
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
dist
node_modules
element-call
package.json
package-lock.json
LICENSE
Expand Down
1 change: 0 additions & 1 deletion element-call
Submodule element-call deleted from ecef38
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ const projectOverrides = defineConfig([
]);

export default defineConfig([
{ ignores: ['element-call/'] },
includeIgnoreFile(gitignorePath),
...jsConfig,
...reactConfig,
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
"devDependencies": {
"@cloudflare/vite-plugin": "^1.26.0",
"@element-hq/element-call-embedded": "file:element-call/embedded/web",
"@element-hq/element-call-embedded": "0.16.3",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@eslint/compat": "2.0.2",
"@eslint/js": "9.39.3",
Expand Down
2 changes: 0 additions & 2 deletions src/app/plugins/call/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export function getCallCapabilities(
capabilities.add(MatrixCapabilities.MSC3846TurnServers);
capabilities.add(MatrixCapabilities.MSC4157SendDelayedEvent);
capabilities.add(MatrixCapabilities.MSC4157UpdateDelayedEvent);
capabilities.add('moe.sable.thumbnails');
capabilities.add('moe.sable.media_proxy');
capabilities.add(`org.matrix.msc2762.timeline:${roomId}`);
capabilities.add(`org.matrix.msc2762.state:${roomId}`);

Expand Down
14 changes: 0 additions & 14 deletions src/sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,6 @@
return;
}

// Since widgets like element call have their own client ids,
// we need this logic. We just go through the sessions list and get a session
// with the right base url. Media requests to a homeserver simply are fine with any account
// on the homeserver authenticating it, so this is fine. But it can be technically wrong.
// If you have two tabs for different users on the same homeserver, it might authenticate
// as the wrong one.
// Thus any logic in the future which cares about which user is authenticating the request
// might break this. Also, again, it is technically wrong.
const byBaseUrl = [...sessions.values()].find((s) => validMediaRequest(url, s.baseUrl));
if (byBaseUrl) {
event.respondWith(fetch(url, { ...fetchConfig(byBaseUrl.accessToken), redirect }));
return;
}

event.respondWith(
requestSessionWithTimeout(clientId).then((s) => {
if (s && validMediaRequest(url, s.baseUrl)) {
Expand Down Expand Up @@ -311,20 +297,20 @@
// because iOS Safari PWA often returns empty or stale results from matchAll().
const hasVisibleClient =
appIsVisible || clients.some((client) => client.visibilityState === 'visible');
console.debug(

Check warning on line 300 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

Check warning on line 300 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement
'[SW push] appIsVisible:',
appIsVisible,
'| clients:',
clients.map((c) => ({ url: c.url, visibility: c.visibilityState }))
);
console.debug('[SW push] hasVisibleClient:', hasVisibleClient);

Check warning on line 306 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

Check warning on line 306 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement
if (hasVisibleClient) {
console.debug('[SW push] suppressing OS notification — app is visible');

Check warning on line 308 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

Check warning on line 308 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement
return;
}

const pushData = event.data.json();
console.debug('[SW push] raw payload:', JSON.stringify(pushData, null, 2));

Check warning on line 313 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

Check warning on line 313 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

try {
if (typeof pushData?.unread === 'number') {
Expand Down Expand Up @@ -364,8 +350,8 @@
const pushEventId: string | undefined = data?.event_id ?? undefined;
const isInvite = data?.content?.membership === 'invite';

console.debug('[SW notificationclick] notification data:', JSON.stringify(data, null, 2));

Check warning on line 353 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

Check warning on line 353 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement
console.debug('[SW notificationclick] resolved fields:', {

Check warning on line 354 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

Check warning on line 354 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement
pushUserId,
pushRoomId,
pushEventId,
Expand Down Expand Up @@ -397,7 +383,7 @@
targetUrl = new URL('inbox/notifications/', scope).href;
}

console.debug('[SW notificationclick] targetUrl:', targetUrl);

Check warning on line 386 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

Check warning on line 386 in src/sw.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

event.waitUntil(
(async () => {
Expand Down
Loading