Compare commits

...

19 Commits

Author SHA1 Message Date
David Baker
444a37224b Merge pull request #1573 from vector-im/dbkr/dont_always_join
Don't always try to join rooms
2023-09-22 19:17:28 +01:00
David Baker
0297008339 Don' always try to join rooms
Look up the alias manually instead. As hopefully explained by the comment.

We hope this may fix a bug where the room ID appeared instead of the room name.
2023-09-22 18:56:34 +01:00
David Baker
6bc8ccf1ce Merge pull request #1571 from vector-im/revert-1570-dbkr/isroome2ee_refactor
Revert "Refactor useIsRoomE2EE"
2023-09-22 18:27:41 +01:00
David Baker
48b038914f Revert "Refactor useIsRoomE2EE" 2023-09-22 18:20:29 +01:00
David Baker
ef32b877ee Merge pull request #1570 from vector-im/dbkr/isroome2ee_refactor
Refactor useIsRoomE2EE
2023-09-22 18:09:33 +01:00
David Baker
058da0a60f Merge pull request #1569 from vector-im/dbkr/bump_js_membershipid
Bump js-sdk
2023-09-22 18:06:30 +01:00
David Baker
f05cae71a8 Use consistent import 2023-09-22 18:05:51 +01:00
Robin
51d31814ea Merge pull request #1562 from RiotTranslateBot/weblate-element-call-element-call
Translations update from Weblate
2023-09-22 12:57:52 -04:00
David Baker
f35dd28bd3 Bump js-sdk
For https://github.com/matrix-org/matrix-js-sdk/pull/3745
2023-09-22 17:40:00 +01:00
David Baker
3cd0ca205b Refactor useIsRoomE2EE
Make it take a room object rather than a room ID to avoid it depending
on a side effect, ie. if the room object input changes, the hook will be
re-run but if we can't get the room from the room ID for whatever reason,
we'd be stuck.

Also add logging on why we decided a room was e2ee.
2023-09-22 15:35:03 +01:00
Glandos
b21bdb1bb5 Translated using Weblate (French)
Currently translated at 100.0% (124 of 124 strings)

Translation: Element Call/element-call
Translate-URL: https://translate.element.io/projects/element-call/element-call/fr/
2023-09-22 14:21:44 +00:00
Linerly
fd7541894b Translated using Weblate (Indonesian)
Currently translated at 100.0% (124 of 124 strings)

Translation: Element Call/element-call
Translate-URL: https://translate.element.io/projects/element-call/element-call/id/
2023-09-22 14:21:44 +00:00
Vri
e5d7c638a6 Translated using Weblate (German)
Currently translated at 100.0% (124 of 124 strings)

Translation: Element Call/element-call
Translate-URL: https://translate.element.io/projects/element-call/element-call/de/
2023-09-22 14:21:44 +00:00
Priit Jõerüüt
811446c241 Translated using Weblate (Estonian)
Currently translated at 100.0% (124 of 124 strings)

Translation: Element Call/element-call
Translate-URL: https://translate.element.io/projects/element-call/element-call/et/
2023-09-22 14:21:44 +00:00
David Baker
e9e37736b0 Merge pull request #1566 from vector-im/dbkr/lklogs
Capture livekit's logs in rageshakes
2023-09-22 13:13:31 +01:00
Kat Gerasimova
187a3c62f8 Remove triage automation
The triage board isn't being used, so no reason to have automation (it's also old style and should be modernised if there's interest in using it again)
2023-09-22 12:50:35 +01:00
David Baker
9bf0dc7dee Unused import 2023-09-21 16:58:02 +01:00
David Baker
9c878eab80 Capture livekit's logs in rageshakes 2023-09-21 16:50:31 +01:00
Element Translate Bot
c62a9be2e9 Translations update from Weblate (#1561)
* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (124 of 124 strings)

Translation: Element Call/element-call
Translate-URL: https://translate.element.io/projects/element-call/element-call/uk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (124 of 124 strings)

Translation: Element Call/element-call
Translate-URL: https://translate.element.io/projects/element-call/element-call/sk/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (124 of 124 strings)

Translation: Element Call/element-call
Translate-URL: https://translate.element.io/projects/element-call/element-call/zh_Hant/

---------

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: Jozef Gaal <preklady@mayday.sk>
Co-authored-by: Jeff Huang <s8321414@gmail.com>
2023-09-21 11:38:42 +02:00
13 changed files with 74 additions and 56 deletions

View File

@@ -1,27 +0,0 @@
name: Move new issues into triage board
on:
issues:
types: [opened]
jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- uses: octokit/graphql-action@v2.x
id: add_to_project
with:
headers: '{"GraphQL-Features": "projects_next_graphql"}'
query: |
mutation add_to_project($projectid:ID!,$contentid:ID!) {
addProjectV2ItemById(input: {projectId: $projectid contentId: $contentid}) {
item {
id
}
}
}
projectid: ${{ env.PROJECT_ID }}
contentid: ${{ github.event.issue.node_id }}
env:
PROJECT_ID: "PVT_kwDOAM0swc4AH1sa"
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}

View File

@@ -58,7 +58,7 @@
"i18next-http-backend": "^1.4.4",
"livekit-client": "^1.12.3",
"lodash": "^4.17.21",
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#6836720e1e1c2cb01d49d6e5fcfc01afc14834ca",
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#6385c9c0dab8fe67bd3a8992a4777f243fdd1b68",
"matrix-widget-api": "^1.3.1",
"mermaid": "^9.0.0",
"normalize.css": "^8.0.1",

View File

@@ -121,5 +121,6 @@
"Mute microphone": "Mikrofon deaktivieren",
"Start new call": "Neuen Anruf beginnen",
"Call not found": "Anruf nicht gefunden",
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Anrufe sind nun Ende-zu-Ende-verschlüsselt und müssen auf der Startseite erstellt werden. Damit stellen wir sicher, dass alle denselben Schlüssel verwenden."
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Anrufe sind nun Ende-zu-Ende-verschlüsselt und müssen auf der Startseite erstellt werden. Damit stellen wir sicher, dass alle denselben Schlüssel verwenden.",
"Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117": "Dein Webbrowser unterstützt keine Medien-Ende-zu-Ende-Verschlüsselung. Unterstützte Browser sind Chrome, Safari, Firefox >=117"
}

View File

@@ -77,7 +77,7 @@
"Submit": "Saada",
"If you are experiencing issues or simply would like to provide some feedback, please send us a short description below.": "Kui selle rakenduse kasutamisel tekib sul probleeme või lihtsalt soovid oma arvamust avaldada, siis palun täida alljärgnev lühike kirjeldus.",
"Feedback": "Tagasiside",
"{{count}} stars|one": "{{count}} tärn",
"{{count}} stars|one": "{{count}} tärni",
"{{count}} stars|other": "{{count}} tärni",
"How did it go?": "Kuidas sujus?",
"{{displayName}}, your call has ended.": "{{displayName}}, sinu kõne on lõppenud.",
@@ -107,5 +107,20 @@
"Sharing screen": "Ekraanivaade on jagamisel",
"{{count, number}}|one": "{{count, number}}",
"{{count, number}}|other": "{{count, number}}",
"{{names, list(style: short;)}}": "{{names, list(style: short;)}}"
"{{names, list(style: short;)}}": "{{names, list(style: short;)}}",
"You": "Sina",
"Continue in browser": "Jätka veebibrauseris",
"Mute microphone": "Summuta mikrofon",
"Name of call": "Kõne nimi",
"Open in the app": "Ava rakenduses",
"Ready to join?": "Oled valmis liituma?",
"Select app": "Vali rakendus",
"Start new call": "Algata uus kõne",
"Back to recents": "Tagasi hiljutiste kõnede juurde",
"Stop video": "Peata videovoog",
"Start video": "Lülita videovoog sisse",
"Unmute microphone": "Lülita mikrofon sisse",
"Call not found": "Kõnet ei leidu",
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Kõned on nüüd läbivalt krüptitud ning need pead looma kodulehelt. Sellega tagad, et kõik kasutavad samu krüptovõtmeid.",
"Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117": "Sinu veebibrauser ei toeta meedia läbivat krüptimist. Toetatud brauserid on Chrome, Chromium, Safari ja Firefox >=117"
}

View File

@@ -52,7 +52,7 @@
"Sign in": "Connexion",
"Sign out": "Déconnexion",
"Spotlight": "Premier plan",
"Submit feedback": "Envoyer des retours",
"Submit feedback": "Envoyer un commentaire",
"This call already exists, would you like to join?": "Cet appel existe déjà, voulez-vous le rejoindre ?",
"Yes, join call": "Oui, rejoindre lappel",
"Waiting for other participants…": "En attente dautres participants…",
@@ -75,7 +75,7 @@
"Thanks, we received your feedback!": "Merci, nous avons reçu vos commentaires !",
"Submitting…": "Envoi…",
"Submit": "Envoyer",
"If you are experiencing issues or simply would like to provide some feedback, please send us a short description below.": "Si vous rencontrez des problèmes, ou vous voulez simplement faire un commentaire, veuillez nous envoyer une courte description ci-dessous.",
"If you are experiencing issues or simply would like to provide some feedback, please send us a short description below.": "Si vous rencontrez des problèmes, ou vous voulez simplement faire un commentaire, faites-en une courte description ci-dessous.",
"Feedback": "Commentaires",
"{{count}} stars|other": "{{count}} favoris",
"<0>We'd love to hear your feedback so we can improve your experience.</0>": "<0>Nous aimerions avoir vos commentaires afin que nous puissions améliorer votre expérience.</0>",
@@ -116,10 +116,11 @@
"Ready to join?": "Prêt à rejoindre ?",
"Select app": "Choisissez lapplication",
"Start new call": "Démarrer un nouvel appel",
"Back to recents": "Revenir aux récents",
"Back to recents": "Revenir à lhistorique des appels",
"Start video": "Démarrer la vidéo",
"Stop video": "Arrêter la vidéo",
"Unmute microphone": "Allumer le microphone",
"Call not found": "Appel non trouvé",
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Les appels sont maintenant chiffrés de bout-en-bout et doivent être créés depuis la page daccueil. Cela permet dêtre sûr que tout le monde utilise la même clé de chiffrement."
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Les appels sont maintenant chiffrés de bout-en-bout et doivent être créés depuis la page daccueil. Cela permet dêtre sûr que tout le monde utilise la même clé de chiffrement.",
"Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117": "Votre navigateur web ne prend pas en charge le chiffrement de bout-en-bout des médias. Les navigateurs pris en charge sont Chrome, Safari, Firefox >= 117"
}

View File

@@ -121,5 +121,6 @@
"Unmute microphone": "Nyalakan mikrofon",
"Back to recents": "Kembali ke terkini",
"Call not found": "Panggilan tidak ditemukan",
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Panggilan sekarang terenkripsi secara ujung ke ujung dan harus dibuat dari laman beranda. Ini memastikan bahwa semuanya menggunakan kunci enkripsi yang sama."
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Panggilan sekarang terenkripsi secara ujung ke ujung dan harus dibuat dari laman beranda. Ini memastikan bahwa semuanya menggunakan kunci enkripsi yang sama.",
"Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117": "Peramban web Anda tidak mendukung enkripsi media ujung ke ujung. Peramban yang didukung adalah Chrome, Safari, dan Firefox >=117"
}

View File

@@ -121,5 +121,6 @@
"Back to recents": "Späť k nedávnym",
"Unmute microphone": "Zrušiť stlmenie mikrofónu",
"Call not found": "Hovor nebol nájdený",
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Hovory sú teraz end-to-end šifrované a je potrebné ich vytvoriť z domovskej stránky. To pomáha zabezpečiť, aby všetci používali rovnaký šifrovací kľúč."
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Hovory sú teraz end-to-end šifrované a je potrebné ich vytvoriť z domovskej stránky. To pomáha zabezpečiť, aby všetci používali rovnaký šifrovací kľúč.",
"Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117": "Váš webový prehliadač nepodporuje end-to-end šifrovanie médií. Podporované prehliadače sú Chrome, Safari, Firefox >=117"
}

View File

@@ -121,5 +121,6 @@
"Start new call": "Розпочати новий виклик",
"Back to recents": "Повернутися до недавніх",
"Call not found": "Виклик не знайдено",
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Відтепер виклики захищено наскрізним шифруванням, і їх потрібно створювати з домашньої сторінки. Це допомагає переконатися, що всі користувачі використовують один і той самий ключ шифрування."
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "Відтепер виклики захищено наскрізним шифруванням, і їх потрібно створювати з домашньої сторінки. Це допомагає переконатися, що всі користувачі використовують один і той самий ключ шифрування.",
"Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117": "Ваш браузер не підтримує наскрізне шифрування мультимедійних даних. Підтримувані браузери: Chrome, Safari, Firefox >=117"
}

View File

@@ -121,5 +121,6 @@
"Stop video": "停止影片",
"Unmute microphone": "將麥克風取消靜音",
"Call not found": "找不到通話",
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "通話現在是端對端加密的,必須從首頁建立。這有助於確保每個人都使用相同的加密金鑰。"
"Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key.": "通話現在是端對端加密的,必須從首頁建立。這有助於確保每個人都使用相同的加密金鑰。",
"Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117": "您的網路瀏覽器不支援媒體端到端加密。支援的瀏覽器包含了 Chrome、Safari、Firefox >=117"
}

View File

@@ -20,7 +20,6 @@ import {
ExternalE2EEKeyProvider,
Room,
RoomOptions,
setLogLevel,
} from "livekit-client";
import { useLiveKitRoom } from "@livekit/components-react";
import { useEffect, useMemo, useRef, useState } from "react";
@@ -44,8 +43,6 @@ export type E2EEConfig = {
sharedKey: string;
};
setLogLevel("debug");
interface UseLivekitResult {
livekitRoom?: Room;
connState: ECConnectionState;

View File

@@ -23,13 +23,19 @@ import "matrix-js-sdk/src/browser-index";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { createBrowserHistory } from "history";
import "./index.css";
import { setLogLevel as setLKLogLevel } from "livekit-client";
import App from "./App";
import { init as initRageshake } from "./settings/rageshake";
import { Initializer } from "./initializer";
initRageshake();
// set livekit's log level: we do this after initialising rageshakes because
// we need rageshake to do its monkey patching first, so the livekit
// logger gets the patched log funxction, so it picks up livekit's
// logs.
setLKLogLevel("debug");
console.info(`Element Call ${import.meta.env.VITE_APP_VERSION || "dev"}`);

View File

@@ -61,20 +61,41 @@ export const useLoadGroupCall = (
useEffect(() => {
const fetchOrCreateRoom = async (): Promise<Room> => {
// We lowercase the localpart when we create the room, so we must lowercase
// it here too (we just do the whole alias). We can't do the same to room IDs
// though.
const sanitisedIdOrAlias =
roomIdOrAlias[0] === "#" ? roomIdOrAlias.toLowerCase() : roomIdOrAlias;
let room: Room | null = null;
if (roomIdOrAlias[0] === "#") {
// We lowercase the localpart when we create the room, so we must lowercase
// it here too (we just do the whole alias). We can't do the same to room IDs
// though.
// Also, we explicitly look up the room alias here. We previously just tried to
// join anyway but the js-sdk recreates the room if you pass the alias for a
// room you're already joined to (which it probably ought not to).
const lookupResult = await client.getRoomIdForAlias(
roomIdOrAlias.toLowerCase()
);
logger.info(`${roomIdOrAlias} resolved to ${lookupResult.room_id}`);
room = client.getRoom(lookupResult.room_id);
if (!room) {
logger.info(`Room ${lookupResult.room_id} not found, joining.`);
room = await client.joinRoom(lookupResult.room_id, {
viaServers: lookupResult.servers,
});
} else {
logger.info(
`Already in room ${lookupResult.room_id}, not rejoining.`
);
}
} else {
// room IDs we just try to join by their ID, which will not work in the
// general case without providing some servers to join via. We could provide
// our own server, but in practice that is implicit.
room = await client.joinRoom(roomIdOrAlias);
}
const room = await client.joinRoom(sanitisedIdOrAlias, {
viaServers,
});
logger.info(
`Joined ${sanitisedIdOrAlias}, waiting room to be ready for group calls`
`Joined ${roomIdOrAlias}, waiting room to be ready for group calls`
);
await client.waitUntilRoomReadyForGroupCalls(room.roomId);
logger.info(`${sanitisedIdOrAlias}, is ready for group calls`);
logger.info(`${roomIdOrAlias}, is ready for group calls`);
return room;
};

View File

@@ -11634,9 +11634,9 @@ matrix-events-sdk@0.0.1:
resolved "https://registry.yarnpkg.com/matrix-events-sdk/-/matrix-events-sdk-0.0.1.tgz#c8c38911e2cb29023b0bbac8d6f32e0de2c957dd"
integrity sha512-1QEOsXO+bhyCroIe2/A5OwaxHvBm7EsSQ46DEDn8RBIfQwN5HWBpFvyWWR4QY0KHPPnnJdI99wgRiAl7Ad5qaA==
"matrix-js-sdk@github:matrix-org/matrix-js-sdk#6836720e1e1c2cb01d49d6e5fcfc01afc14834ca":
version "28.0.0"
resolved "https://codeload.github.com/matrix-org/matrix-js-sdk/tar.gz/6836720e1e1c2cb01d49d6e5fcfc01afc14834ca"
"matrix-js-sdk@github:matrix-org/matrix-js-sdk#6385c9c0dab8fe67bd3a8992a4777f243fdd1b68":
version "28.1.0"
resolved "https://codeload.github.com/matrix-org/matrix-js-sdk/tar.gz/6385c9c0dab8fe67bd3a8992a4777f243fdd1b68"
dependencies:
"@babel/runtime" "^7.12.5"
"@matrix-org/matrix-sdk-crypto-wasm" "^1.2.3-alpha.0"