From 28da02c583c2eae062b2b75de178b2c530b610f3 Mon Sep 17 00:00:00 2001 From: Alexey Nechaev <11815484+tomtit@users.noreply.github.com> Date: Tue, 18 Apr 2023 19:45:39 +0300 Subject: [PATCH 01/66] Fixes #7758: Fixed JWT token for Jitsi openidtoken-jwt authentication Signed-off-by: Alexey Nechaev --- changelog.d/7758.bugfix | 1 + vector/build.gradle | 1 + .../call/conference/jwt/JitsiJWTFactory.kt | 19 ++- .../conference/jwt/JitsiJWTFactoryTest.kt | 156 ++++++++++++++++++ 4 files changed, 175 insertions(+), 2 deletions(-) create mode 100644 changelog.d/7758.bugfix create mode 100644 vector/src/test/java/im/vector/app/features/call/conference/jwt/JitsiJWTFactoryTest.kt diff --git a/changelog.d/7758.bugfix b/changelog.d/7758.bugfix new file mode 100644 index 00000000000..7a91a641923 --- /dev/null +++ b/changelog.d/7758.bugfix @@ -0,0 +1 @@ +Fixed JWT token for Jitsi openidtoken-jwt authentication diff --git a/vector/build.gradle b/vector/build.gradle index 5eff90448ae..70a7ee2c552 100644 --- a/vector/build.gradle +++ b/vector/build.gradle @@ -282,6 +282,7 @@ dependencies { runtimeOnly(libs.jsonwebtoken.jjwtOrgjson) { exclude group: 'org.json', module: 'json' //provided by Android natively } + testImplementation(libs.jsonwebtoken.jjwtOrgjson) implementation 'commons-codec:commons-codec:1.15' // MapTiler diff --git a/vector/src/main/java/im/vector/app/features/call/conference/jwt/JitsiJWTFactory.kt b/vector/src/main/java/im/vector/app/features/call/conference/jwt/JitsiJWTFactory.kt index 8809606e6eb..a6dd0831c74 100644 --- a/vector/src/main/java/im/vector/app/features/call/conference/jwt/JitsiJWTFactory.kt +++ b/vector/src/main/java/im/vector/app/features/call/conference/jwt/JitsiJWTFactory.kt @@ -19,8 +19,11 @@ package im.vector.app.features.call.conference.jwt import im.vector.app.core.utils.ensureProtocol import io.jsonwebtoken.Jwts import io.jsonwebtoken.SignatureAlgorithm +import io.jsonwebtoken.io.Encoders import io.jsonwebtoken.security.Keys import org.matrix.android.sdk.api.session.openid.OpenIdToken +import javax.crypto.Mac +import javax.crypto.spec.SecretKeySpec import javax.inject.Inject class JitsiJWTFactory @Inject constructor() { @@ -37,7 +40,12 @@ class JitsiJWTFactory @Inject constructor() { userDisplayName: String ): String { // The secret key here is irrelevant, we're only using the JWT to transport data to Prosody in the Jitsi stack. - val key = Keys.secretKeyFor(SignatureAlgorithm.HS256) + // In the PR https://github.com/jitsi/luajwtjitsi/pull/3 the function `luajwtjitsi.decode` was removed and + // we cannot use random secret keys anymore. But the JWT library `jjwt` doesn't accept the hardcoded key `notused` + // from the module `prosody-mod-auth-matrix-user-verification` since it's too short and thus insecure. So, we + // create a new token using a random key and then re-sign the token manually with the 'weak' key. + val signatureAlgorithm = SignatureAlgorithm.HS256 + val key = Keys.secretKeyFor(signatureAlgorithm) val context = mapOf( "matrix" to mapOf( "token" to openIdToken.accessToken, @@ -52,7 +60,8 @@ class JitsiJWTFactory @Inject constructor() { // As per Jitsi token auth, `iss` needs to be set to something agreed between // JWT generating side and Prosody config. Since we have no configuration for // the widgets, we can't set one anywhere. Using the Jitsi domain here probably makes sense. - return Jwts.builder() + val token = Jwts.builder() + .setHeaderParam("typ", "JWT") .setIssuer(jitsiServerDomain) .setSubject(jitsiServerDomain) .setAudience(jitsiServerDomain.ensureProtocol()) @@ -61,5 +70,11 @@ class JitsiJWTFactory @Inject constructor() { .claim("context", context) .signWith(key) .compact() + // Re-sign token with the hardcoded key + val toSign = token.substring(0, token.lastIndexOf('.')) + val mac = Mac.getInstance(signatureAlgorithm.jcaName) + mac.init(SecretKeySpec("notused".toByteArray(), mac.algorithm)) + val prosodySignature = Encoders.BASE64URL.encode(mac.doFinal(toSign.toByteArray())) + return "$toSign.$prosodySignature" } } diff --git a/vector/src/test/java/im/vector/app/features/call/conference/jwt/JitsiJWTFactoryTest.kt b/vector/src/test/java/im/vector/app/features/call/conference/jwt/JitsiJWTFactoryTest.kt new file mode 100644 index 00000000000..94c2f8cbefe --- /dev/null +++ b/vector/src/test/java/im/vector/app/features/call/conference/jwt/JitsiJWTFactoryTest.kt @@ -0,0 +1,156 @@ +/* + * Copyright (c) 2023 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package im.vector.app.features.call.conference.jwt + +import com.squareup.moshi.JsonAdapter +import com.squareup.moshi.Moshi +import com.squareup.moshi.Types +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Before +import org.junit.Test +import org.matrix.android.sdk.api.session.openid.OpenIdToken +import java.lang.reflect.ParameterizedType +import java.util.Base64 +import kotlin.streams.toList + +class JitsiJWTFactoryTest { + private val base64Decoder = Base64.getUrlDecoder() + private val moshi = Moshi.Builder().build() + private val stringToString = Types.newParameterizedType(Map::class.java, String::class.java, String::class.java) + private val stringToAny = Types.newParameterizedType(Map::class.java, String::class.java, Any::class.java) + private lateinit var factory: JitsiJWTFactory + + @Before + fun init() { + factory = JitsiJWTFactory() + } + + @Test + fun `token contains 3 encoded parts`() { + val token = createToken() + + val parts = token.split(".") + assertEquals(3, parts.size) + parts.forEach { + assertTrue("Non-empty array", base64Decoder.decode(it).isNotEmpty()) + } + } + + @Test + fun `token contains unique signature`() { + val signatures = listOf("one", "two").stream() + .map { createToken(it) } + .map { it.split(".")[2] } + .map { base64Decoder.decode(it) } + .toList() + + assertEquals(2, signatures.size) + signatures.forEach { + assertEquals(32, it.size) + } + assertFalse("Unique", signatures[0].contentEquals(signatures[1])) + } + + @Test + fun `token header contains algorithm`() { + val token = createToken() + + assertEquals("HS256", parseTokenHeader(token)["alg"]) + } + + @Test + fun `token header contains type`() { + val token = createToken() + + assertEquals("JWT", parseTokenHeader(token)["typ"]) + } + + @Test + fun `token body contains subject`() { + val token = createToken() + + assertEquals("jitsi-server-domain", parseTokenBody(token)["sub"]) + } + + @Test + fun `token body contains issuer`() { + val token = createToken() + + assertEquals("jitsi-server-domain", parseTokenBody(token)["iss"]) + } + + @Test + fun `token body contains audience`() { + val token = createToken() + + assertEquals("https://jitsi-server-domain", parseTokenBody(token)["aud"]) + } + + @Test + fun `token body contains room claim`() { + val token = createToken() + + assertEquals("*", parseTokenBody(token)["room"]) + } + + @Test + fun `token body contains matrix data`() { + val token = createToken() + + assertEquals(mutableMapOf("room_id" to "room-id", "server_name" to "matrix-server-name", "token" to "matrix-token"), parseMatrixData(token)) + } + + @Test + fun `token body contains user data`() { + val token = createToken() + + assertEquals(mutableMapOf("name" to "user-display-name", "avatar" to "user-avatar-url"), parseUserData(token)) + } + + private fun createToken(): String { + return createToken("matrix-token") + } + + private fun createToken(accessToken: String): String { + val openIdToken = OpenIdToken(accessToken, "matrix-token-type", "matrix-server-name", -1) + return factory.create(openIdToken, "jitsi-server-domain", "room-id", "user-avatar-url", "user-display-name") + } + + private fun parseTokenHeader(token: String): Map { + return parseTokenPart(token.split(".")[0], stringToString) + } + + private fun parseTokenBody(token: String): Map { + return parseTokenPart(token.split(".")[1], stringToAny) + } + + private fun parseMatrixData(token: String): Map<*, *> { + return (parseTokenBody(token)["context"] as Map<*, *>)["matrix"] as Map<*, *> + } + + private fun parseUserData(token: String): Map<*, *> { + return (parseTokenBody(token)["context"] as Map<*, *>)["user"] as Map<*, *> + } + + private fun parseTokenPart(value: String, type: ParameterizedType): T { + val decoded = String(base64Decoder.decode(value)) + val adapter: JsonAdapter = moshi.adapter(type) + return adapter.fromJson(decoded)!! + } +} From 9aeb3b70748d55859078df4b2a65c3dfabfd35bf Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 25 Jul 2023 14:58:22 +0200 Subject: [PATCH 02/66] version++ --- matrix-sdk-android/build.gradle | 2 +- vector-app/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix-sdk-android/build.gradle b/matrix-sdk-android/build.gradle index 6b29e56d77d..72719bb6d72 100644 --- a/matrix-sdk-android/build.gradle +++ b/matrix-sdk-android/build.gradle @@ -63,7 +63,7 @@ android { // that the app's state is completely cleared between tests. testInstrumentationRunnerArguments clearPackageData: 'true' - buildConfigField "String", "SDK_VERSION", "\"1.6.5\"" + buildConfigField "String", "SDK_VERSION", "\"1.6.6\"" buildConfigField "String", "GIT_SDK_REVISION", "\"${gitRevision()}\"" buildConfigField "String", "GIT_SDK_REVISION_UNIX_DATE", "\"${gitRevisionUnixDate()}\"" diff --git a/vector-app/build.gradle b/vector-app/build.gradle index 36f19795311..9aff3eaa84f 100644 --- a/vector-app/build.gradle +++ b/vector-app/build.gradle @@ -37,7 +37,7 @@ ext.versionMinor = 6 // Note: even values are reserved for regular release, odd values for hotfix release. // When creating a hotfix, you should decrease the value, since the current value // is the value for the next regular release. -ext.versionPatch = 5 +ext.versionPatch = 6 static def getGitTimestamp() { def cmd = 'git show -s --format=%ct' From e567b9c9cf74b7298fe00047e785f84b03d359ff Mon Sep 17 00:00:00 2001 From: Edgars Andersons Date: Tue, 25 Jul 2023 19:31:11 +0000 Subject: [PATCH 03/66] Translated using Weblate (Latvian) Currently translated at 84.0% (2216 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/lv/ --- .../src/main/res/values-lv/strings.xml | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/library/ui-strings/src/main/res/values-lv/strings.xml b/library/ui-strings/src/main/res/values-lv/strings.xml index 4d7cb09b963..2e9114d3a26 100644 --- a/library/ui-strings/src/main/res/values-lv/strings.xml +++ b/library/ui-strings/src/main/res/values-lv/strings.xml @@ -1945,11 +1945,11 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Url: Sesijas attēlojamais nosaukums: Lietotnes attēlojamais nosaukums: - Iesūtīšanas atslēga: + Pašpiegādes atslēga: Lietotnes identifikators: - Nav reģistrētu Palaišanas vārtu - Nav iestatīti Palaišanas Noteikumi - Palaišanas Noteikumi + Nav norādītas pašpiegādes vārtejas + Nav norādīti pašpiegādes nosacījumi + Pašpiegādes nosacījumi Radīt jaunu Telpu Izskatās, ka mēģini izveidot savienojumu ar citu mājasserveri. Vai atteikties\? Paziņot mani priekš @@ -1988,9 +1988,9 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. \n%1$s Fona ierobežojumi ir izslēgti priekš ${app_name}. Šis tests jāveic, izmantojot mobilos datus (bez WIFI). \n%1$s - Neizdevās saņemt palaišanu. Iespējams, vajag pārielādēt lietotni. - Lietotne saņem Palaišanu - Lietotne gaida Palaišanu + Neizdevās saņemt pašpiegādi. Risinājums varētu būt atkārtota lietotnes uzstādīšana. + Lietotne saņem pašpiegādi + Lietotne gaida pašpiegādi Pārbaudīt pašpiegādi [%1$s] \nŠī kļūda ir ārpus ${app_name} kontroles. Tālrunī nav Google konta. Lūdzu, atveriet kontu pārvaldnieku un pievienojiet Google kontu. @@ -2503,4 +2503,21 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Jāpārskata iestatījumi, lai iespējotu pašpiegādes paziņojumus Saglabāt atkopšanas atslēgu Uzstādīt + + %d ierakstu + %d ieraksts + %d ieraksti + + Aizsargāt piekļuvi + Iestatīt aizsardzību + Lai atiestatītu PIN, būs nepieciešams atkārtoti pieteikties un izveidot jaunu. + Neizdevās apstiprināt PIN, lūgums ievadīt jaunu. + Biometriskā autentificēšanās tika atspējota, jo nesen tika pievienots jauns biometriskās autentifikācijas veids. To var atkal iespējot iestatījumos. + Aizsargāt piekļuvi ar PIN un biometriju. + + Nepareizs kods, atlikuši %d mēģinājumu + Nepareizs kods, atlicis %d mēģinājums + Nepareizs kods, atlikuši %d mēģinājumi + + Pārāk daudz kļūdu, tādēļ tiki izrakstīts \ No newline at end of file From 95b63ccefbdabd905c064ca2b4efd7b9cf487ab9 Mon Sep 17 00:00:00 2001 From: Edgars Andersons Date: Tue, 25 Jul 2023 20:22:31 +0000 Subject: [PATCH 04/66] Translated using Weblate (Latvian) Currently translated at 88.6% (2336 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/lv/ --- .../src/main/res/values-lv/strings.xml | 131 ++++++++++++++++++ 1 file changed, 131 insertions(+) diff --git a/library/ui-strings/src/main/res/values-lv/strings.xml b/library/ui-strings/src/main/res/values-lv/strings.xml index 2e9114d3a26..5ac7dc54702 100644 --- a/library/ui-strings/src/main/res/values-lv/strings.xml +++ b/library/ui-strings/src/main/res/values-lv/strings.xml @@ -2520,4 +2520,135 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Nepareizs kods, atlikuši %d mēģinājumi Pārāk daudz kļūdu, tādēļ tiki izrakstīts + Nevarēja iespējot biometrisko autentifikāciju. + Atvērt iestatījumus + Noklusējuma uzticamības līmenis + Ja ir vēlēšanas atiestatīt savu PIN, jāpiesit Aizmirsu PIN, lai atteiktos un atiesatītu. + Pieprasīt PIN pēc 2 minūtēm + Iepriekškonsultēšana + Nav satura + Nevar ierakstīt balss ziņu + Buferizācija… + Brīdinājuma uzticamības līmenis + ${app_name} pieprasa ievadīt piekļuves datus, lai veiktu šo darbību. + ir nenosūtīts melnraksts + Izpētīt istabas stāvokli + Uzticams uzticamības līmenis + Atzīmēts + Nosūtīt pielāgotu notikumu + Labot saturu + Nosūtīt pielāgotu stāvokļa notikumu + Trūkst ziņas veida + Stāvokļa notikums ir nosūtīts. + Notikuma saturs + Dažas vietas var būt paslēptas, jo tās ir privātas un ir nepieciešams uzaicinājums uz tām. + Jūtams izmēģinājuma gars\? +\nVietai ir iespējams pievienot esošas vietas. + Nevar atbildēt vai labot, kamēr tiek izmantota balss ziņa + Apturēt %1$s + %1$s (%2$s) + (%1$s) + Jaunināt + Atlikušas %1$d s + + %1$d notiekošu zvanu · + %1$d notiekošs zvans · + %1$d notiekoši zvani · + + Nav atzīmēts + Izstrādātāja rīki + Atklājamība (%s) + Pievienot esošas vietas + Pievienot vietu jebkurai sevis pārvaldītai vietai. + Piezīme: lietotne tiks pārsāknēta + Parādīt jaunāko lietotāja informāciju + Atskaņot balss ziņu + Apturēt balss ziņu + Balss ziņa (%1$s) + Tiešraide + Atsākt balss apraides ierakstu + Konsultējas ar %1$s + Slidināt, lai atceltu + Pārtraukt balss pārraides ierakstu + Pārvirzīt + Paziņot ar skaņu + Dažas ziņas netika nosūtītas + %s uzaicina Tevi + Automātiski uzaicināt vietas vecākvienumu + Atvainojamies, atgadījās kļūda pievienošanās mēģinājuma laikā: %s + Ievietot atslēgu no datnes + Nosūtīt stāvokļa notikumu + Nepareizi veidots notikums + Atzīmēt kā neieteikto + Ierakstīt balss ziņu + Tiešraides apraide + Automātiski uzaicināt lietotājus + Aizņemts + Atjaunina istabu uz jaunu versiju + + Jau pievienojušies %d zināmu cilvēku + Jau pievienojies %d zināms cilvēks + Jau pievienojušies %d zināmi cilvēki + + Notikuma saturs + Šī istaba tiks jaunināta no %1$s uz %2$s. + Atzīmēt kā ieteikto + Rādīt saturu paziņojumos + Rādīt, piemēram, istabu nosaukumus un ziņas saturu. + Attēlot tikai neizlasīto ziņu skaitu vienkāršā paziņojumā. + Nevar atvērt istabu, no kuras esi izslēgts. + Pārvirzīt uz %1$s + Nepieciešama atkārtota autentificēšanās + Stāvokļa notikumi + Pašlaik šis aizstājvārds nav pieejams. +\nVēlāk jāmēģina vēlreiz vai jāvaicā istabas pārvaldītājam, lai pārbauda, vai Tev ir piekļuve. + Pašlaik netiek izmantots identitātes serveris. Lai varētu uzaicināt komandas biedrus un būtu tiem atklājams, jāiestata tāds zemāk. + Nebūs iespējams atkārtoti pievienoties bez uzaicinājuma. + Nekas netika atrasts + Automātiski ziņot par atšifrēšanas kļūdām. + Sistēma automātiski nosūtīts žurnāla ierakstus, kad notiks kļūda \"nav iespējams atšifrēt\" + Iespējot no ierīces atkarīgu biometriju, piemēram, pirkstu nospiedumus un sejas atpazīšanu. + PIN kods tiks pieprasīts pēc 2 minūšu ${app_name} neizmantošanas. + PIN kods tiek pieprasīts katrā ${app_name} atvēršanas reizē. + Notika kļūda zvana pārvirzīšanas laikā + Paziņot bez skaņas + Notikums ir nosūtīts. + Neizdevās + Tu esi vienīgais šīs vietas pārvaldītājs. Tās atstāšana nozīmē, ka neviens to nepārvaldīs. + Iespējot pavedienu ziņas + Meklē kādu, kurš nav %s\? + Ieteiktā + Istaba bez nosaukuma + Nepieciešams jauninājums + Jaunināt privāto istabu + Ir nepieciešama atļauja, lai jauninātu istabu + Apturēt ierakstīšanu + Ieraksta balss ziņu + Nevar uzsākt balss ziņu + %1$s, %2$s, %3$s + Atskaņot %1$s + Parādīt jaunāko profila informāciju (attēlu un attēlojamo vārdu) visām ziņām. + Lūgums paciesties, tas var aizņemt kādu laiku. + Istabas jaunināšana ir sarežģīta darbība un parasti ir ieteicama, kad istaba ir nepastāvīga kļūdu, trūkstošu iespēju vai drošības ievainojamību dēļ. +\nTas parasti tikai ietekmē to, kā istaba tiek apstrādāta serverī. + Jaunināt uz ieteicamo istabas versiju + Jāpiesit ierakstam, lai klausītos vai apturētu + Nevar uzsākt balss ziņu, jo pašreiz tiek ierakstīta tiešraides apraide. Lūgums to pārtraukt, lai varētu uzsākt balss ziņas ierakstīšanu + Apturēt balss apraides ierakstu + Nevar atskaņot šo balss ziņu + Ziņa nav nosūtīta kļūdas dēļ + Kopīgot ar tekstu + Iespējot biometriju + Pabeigt iestatīšanu + Pievienoties aizvietotājistabai + Nepaziņot + Pabeigt atklājamības izveidošanu. + Tu esi uzaicināts + Jaunināt publisko istabu + %1$d minūtes %2$d sekundes + Nespēj atskaņot %1$s + PIN kods ir vienīgais veids, kā atslēgt ${app_name}. + Uzaicināt e-pastā, atrast kontaktus un vēl… + Stāvokļa atslēga + Lietas šajā vietā \ No newline at end of file From cd7bf12e163bc43b4cb2e07d71e6f8c77c3d7383 Mon Sep 17 00:00:00 2001 From: Edgars Andersons Date: Fri, 28 Jul 2023 06:17:18 +0000 Subject: [PATCH 05/66] Translated using Weblate (Latvian) Currently translated at 92.3% (2434 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/lv/ --- .../src/main/res/values-lv/strings.xml | 139 +++++++++++++++++- 1 file changed, 135 insertions(+), 4 deletions(-) diff --git a/library/ui-strings/src/main/res/values-lv/strings.xml b/library/ui-strings/src/main/res/values-lv/strings.xml index 5ac7dc54702..bb7a0b62e19 100644 --- a/library/ui-strings/src/main/res/values-lv/strings.xml +++ b/library/ui-strings/src/main/res/values-lv/strings.xml @@ -2054,8 +2054,8 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Atvērt aptauju Sniegt atgriezenisko saiti Piesist augšējā labajā stūrī, lai redzētu iespēju sniegt atgriezenisko saiti. - Tu beidzi balss pārraidi. - %1$s izbeidza balss pārraidi. + Tu beidzi balss apraidi. + %1$s izbeidza balss apraidi. Izmantot ierīci, kurā veikta pieteikšanās, lai nolasītu zemāk esošo kvadrātkodu: Nolasīt zemāk esošo kvadrātkodu ar ierīci, kurā ir notikusi atteikšanās. Pieteikties ar kvadrātkodu @@ -2341,7 +2341,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Lūgums sazināties ar pārvaldītāju, lai atjaunotu šifrēšanu derīgā stāvoklī. Apstiprināt tālruņa numuru Šo saiti nevar atvērt: kopienas tika aizstātas ar vietām - Uzsāka balss pārraidi + Uzsāka balss apraidi Izlaist šo jautājumu Apliecina ar drošo atslēgu vai vārdkopu… Šifrēšana ir kļūdaini uzstādīta. @@ -2569,7 +2569,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Atsākt balss apraides ierakstu Konsultējas ar %1$s Slidināt, lai atceltu - Pārtraukt balss pārraides ierakstu + Pārtraukt balss apraides ierakstu Pārvirzīt Paziņot ar skaņu Dažas ziņas netika nosūtītas @@ -2651,4 +2651,135 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Uzaicināt e-pastā, atrast kontaktus un vēl… Stāvokļa atslēga Lietas šajā vietā + Atvērt ar + Attēlo aptaujas + Kopīgot atrašanās vietu tiešraidē + Aptaujas jautājums vai temats + Kopīgot šo atrašanās vietu + Sasaistīt šo e-pasta adresi ar kontu + + Pamatojoties uz %1$d balsojumiem + Pamatojoties uz %1$d balsojumu + Pamatojoties uz %1$d balsojumiem + + IZVEIDOT APTAUJU + Nav saņemti balsojumi + Izbeigt šo aptauju\? + Nevar uzsākt jaunu balss apraidi + Atskaņot vai atsākt balss apraidi + Ātri patīt 30 sekundes atpakaļ + Ātri patīt 30 sekundes uz priekšu + Kāds cits jau ieraksta balss apraidi. Jāgaida, līdz tā beigsies, lai varētu uzsākt jaunu. + Vai tiešām pārtraukt tiešraides apraidi\? Tas izbeigs apraidi, un istabā būs pieejams viss ieraksts. + Šis uzaicinājums uz šo vietu tika nosūtīts uz %s, kas nav saistīts ar Tavu kontu + Iespējot LaTeX matemātiku + Jautājums vai temats + Jautājums nevar būt tukšs + + Saņemti %1$d balsojumu. Jābalso, lai redzētu iznākumu + Saņemts %1$d balsojums. Jābalso, lai redzētu iznākumu + Saņemti %1$d balsojumi. Jābalso, lai redzētu iznākumu + + + Galīgais iznākums, pamatojoties uz %1$d balsojumiem + Galīgais iznākums, pamatojoties uz %1$d balsojumu + Galīgais iznākums, pamatojoties uz %1$d balsojumiem + + Aptauja izbeigta + Labot aptauju + Izbeidza aptauju. + Ielādēt vairāk aptauju + Kļūda aptauju ieguvē. + Pietuvināt līdz pašreizējai atrašanās vietai + 15 minūtes + Atrašanās vietas tiešraide + Tu jau ieraksti balss apraidi. Lūgums pabeigt pašreizējo, lai uzsāktu jaunu. + Tas vairs neļaus cilvēkiem balsot, un tiks attēlots aptaujas galīgais iznākums. + Aptaujas veids + Balsotāji redz iznākumu, tiklīdz viņi ir nobalsojuši + Atrašanās vietas tiešraide iespējota + Atrašanās vietas tiešraide beidzās + Atjaunota pirms %1$s + Atšifrēšanas kļūdu dēļ daži balsojumi var netikt ieskaitīti + Kopīgot šo atrašanās vietu + Piespraust atlasīto atrašanās vietu kartē + Apskatīt atrašanās vietas tiešraidi + Atvērt kameru + Nosūtīt attēlus un video + Tiešraidē līdz %1$s + Karte + ${app_name} nevarēja piekļūt atrašanās vietai + Apturēt balss apraidi + Iznākums būs redzams, kad aptauja būs beigusies + Aizvērta aptauja + Atlicis %1$s + MSC3061: istabu atslēgu kopīgošana pagātnes ziņām + Saņemtais balsojums + Noņemt aptauju + 8 stundas + Izbeigt aptauju + Pārtraukt + Pārtraukt tiešraides apraidi\? + Izveidot aptauju + Šajā istabā nav noslēgto aptauju + 1 stundu + Neizdevās ielādēt karti + Iespējot atrašanās vietas tiešraides kopīgošanu + Izbeigt aptauju + Nav iespējams atšifrēt šo balss apraidi. + Lietotne ir jāpārsāknē, lai izmaiņas stātos spēkā. + Vai tiešām noņemt šo aptauju\? To pēc noņemšanas vairs nevarēs atgūt. + Šajā istabā nav notiekošu aptauju + Noslēgušās aptaujas + Kopīgot manu pašreizējo atrašanās vietu + Kopīgot atrašanās vietu tiešraidē + Nepieciešamas atbilstošas atļaujas, lai šajā istabā varētu kopīgot atrašanās vietas tiešraidi. + Atrašanās vieta + Kopīgot manu pašreizējo atrašanās vietu + Kopīgot atrašanās vietu tiešraidē + Nebija iespējams ielādēt karti +\nŠis mājasserveris var nebūt iestatīts, lai attēlotu kartes. + Kopīgot atrašanās vietu + Notiekošās aptaujas + + Iepriekšējās %1$d dienās nav noslēgto aptauju. +\nJāielādē vairāk aptauju, lai apskatītu iepriekšējo dienu aptaujas. + Iepriekšējā dienā nav noslēgto aptauju. +\nJāielādē vairāk aptauju, lai apskatītu iepriekšējo dienu aptaujas. + Iepriekšējās %1$d dienās nav noslēgto aptauju. +\nJāielādē vairāk aptauju, lai apskatītu iepriekšējo dienu aptaujas. + + ${app_name} nevarēja piekļūt atrašanās vietai. Lūgums vēlāk mēģināt vēlreiz. + Nav nepieciešamo atļauju, lai uzsāktu balss apraidi šajā istabā. Jāsazinās ar istabas pārvaldītāju, lai paaugstinātu atļaujas. + + Iepriekšējās %1$d dienās nav notiekošu aptauju. +\nJāielādē vairāk aptauju, lai redzētu iepriekšējo dienu aptaujas. + Iepriekšējā dienā nav notiekošu aptauju. +\nJāielādē vairāk aptauju, lai redzētu iepriekšējo dienu aptaujas. + Iepriekšējās %1$d nav notiekošu aptauju. +\nJāielādē vairāk aptauju, lai redzētu iepriekšējo dienu aptaujas. + + Apskatīt aptauju laika joslā + Ielādē atrašanās vietas tiešraidi… + Nav iespējams atskaņot šo balss apraidi. + Kopīgot atrašanās vietu + ${app_name} atrašanās vietas tiešraide + Savienojuma kļūda - ierakstīšana apturēta + Notiek atrašanās vietas kopīgošana + Atlicis %1$s + Pagaidu īstenojums: atrašanās vietas ir paliekošas istabas vēsturē + Ikviens no %s varēs atrast šo istabu un pievienoties tai - nav nepieciešams pašrocīgi visus uzaicināt. To jebkurā laikā būs iespējams mainīt istabas iestatījumos. + Nav atļaujas kopīgot atrašanās vietas tiešraidi + Ikviens vecākvietā varēs atrast šo istabu un pievienoties tai - nav nepieciešams pašrocīgi visus uzaicināt. To jebkurā laikā ir iespējams mainīt istabas iestatījumos. + Lūgums ņemt vērā, ka jaunināšana izveidos jaunu istabas versiju. Visas pašreizējās ziņas paliks šajā arhivētajā istabā. + Rādīt ziņu burbuļus + Šis uzaicinājums uz šo istabu tika nosūtīts uz %s, kas nav saistīta ar Tavu kontu + %s iestatījumos, lai saņemtu uzaicinājumus tieši ${app_name}. + Kad uzaicina šifrētā istabā, kas kopīgo vēsturi, būs redzama šifrētā vēsture. + + %1$d balsojumu + %1$d balsojums + %1$d balsojumi + + Iznākums tiek atklāts tikai pēc aptaujas izbeigšanas \ No newline at end of file From fd464872705c0503f56b9b3aa8765da59b8e061a Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 27 Jul 2023 19:44:28 +0000 Subject: [PATCH 06/66] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (2636 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/pt_BR/ --- .../src/main/res/values-pt-rBR/strings.xml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/library/ui-strings/src/main/res/values-pt-rBR/strings.xml b/library/ui-strings/src/main/res/values-pt-rBR/strings.xml index ee6431ea3fc..c1ae3cde512 100644 --- a/library/ui-strings/src/main/res/values-pt-rBR/strings.xml +++ b/library/ui-strings/src/main/res/values-pt-rBR/strings.xml @@ -2909,4 +2909,53 @@ Terminar sessão ainda assim Verificação a partir de Chave ou Frase Segura… Até que este utilizador confie nesta sessão, as mensagens enviadas para e a partir dela são marcadas com avisos. + Mensagem na sala + Alternar lista numerada + Votações ativas + Ver votação na linha do tempo + Devido a erros de descriptografia, alguns votos podem não serem contados + A mensageria segura fora aprimorada com a atualização mais recente. Verifique novamente seu dispositivo. + Votação encerrada. + Votações anteriores + Alternar lista de marcadores + Sala/Espaço + Aguardando os usuários entrarem no ${app_name} + Assim que os usuários convidados entrarem no ${app_name}, vocês poderão conversar e a sala terá criptografia de ponta a ponta + Não há votação ativa nesta sala + Não há votações anteriores nesta sala + Votação encerrada + Prossiga apenas se você tem certeza que você perdeu todos os outros dispositivos e sua chave de segurança. + Criptografado por um dispositivo apagado + Remover recuo + Alternar aspas + Aplicar formatação de código em linha + Prosseguir + O pedido de verificação não foi encontrado. Ele pode ter sido cancelado ou tratado por outra sessão. + Recuar + Alternar bloco de código + terminou uma votação. + Votação + Token de acesso + Você não pode iniciar uma mensagem de voz porque está gravando uma transmissão ao vivo. Termine sua transmissão ao vivo para iniciar uma mensagem de voz + + Não há votação anterior para antes de ontem. +\nCarregue mais votações para ver as votações dos dias anteriores. + Não há votação anterior para os últimos %1$d dias. +\nCarregue mais votações para ver as votações dos dias anteriores. + + + Não há votação ativa para antes de ontem. +\nCarregue mais votações para ver as votações dos dias anteriores. + Não há votação ativa para os últimos %1$d dias. +\nCarregue mais votações para ver as votações dos dias anteriores. + + Carregar mais votações + Erro ao buscar votações. + Seu token de acesso fornece acesso completo à sua conta. Não o compartilhe com outras pessoais. + Mensagem de %s + A redefinição de suas chaves de verificação não pode ser desfeita. Após a redefinição, você não terá acesso às mensagens criptografadas antigas e todos os amigos que fizeram a verificação anteriormente verão avisos de segurança até que você faça a verificação novamente com eles. + Não foi possível iniciar a mensagem de voz + Exibindo votações + Mensagem + Mensagem em %s \ No newline at end of file From 10cde1f0a6e0f71c7b2f1914c64b88826159c3ea Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 27 Jul 2023 19:52:25 +0000 Subject: [PATCH 07/66] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (100 of 100 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/pt_BR/ --- fastlane/metadata/android/pt-BR/changelogs/40105160.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105180.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105200.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105220.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105240.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105250.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105260.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105280.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105300.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40105320.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40106000.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40106010.txt | 2 ++ fastlane/metadata/android/pt-BR/changelogs/40106020.txt | 2 ++ 13 files changed, 26 insertions(+) create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105160.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105180.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105200.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105220.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105240.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105250.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105260.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105280.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105300.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40105320.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40106000.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40106010.txt create mode 100644 fastlane/metadata/android/pt-BR/changelogs/40106020.txt diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105160.txt b/fastlane/metadata/android/pt-BR/changelogs/40105160.txt new file mode 100644 index 00000000000..0e5e1a94015 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105160.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Threads são agora habilitadas por padrão. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105180.txt b/fastlane/metadata/android/pt-BR/changelogs/40105180.txt new file mode 100644 index 00000000000..0e5e1a94015 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105180.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Threads são agora habilitadas por padrão. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105200.txt b/fastlane/metadata/android/pt-BR/changelogs/40105200.txt new file mode 100644 index 00000000000..d02800b55f7 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105200.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Basicamente correção de bugs! +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105220.txt b/fastlane/metadata/android/pt-BR/changelogs/40105220.txt new file mode 100644 index 00000000000..bacba5f1485 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105220.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Basicamente melhorias no recurso de transmissão de voz. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105240.txt b/fastlane/metadata/android/pt-BR/changelogs/40105240.txt new file mode 100644 index 00000000000..2e824d1a6e6 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105240.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Basicamente correção de bugs, em especial a correção da mensagem não aparecer na linha do tempo. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105250.txt b/fastlane/metadata/android/pt-BR/changelogs/40105250.txt new file mode 100644 index 00000000000..2e824d1a6e6 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105250.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Basicamente correção de bugs, em especial a correção da mensagem não aparecer na linha do tempo. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105260.txt b/fastlane/metadata/android/pt-BR/changelogs/40105260.txt new file mode 100644 index 00000000000..d48b5922791 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105260.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Basicamente correção de bugs. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105280.txt b/fastlane/metadata/android/pt-BR/changelogs/40105280.txt new file mode 100644 index 00000000000..d48b5922791 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105280.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Basicamente correção de bugs. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105300.txt b/fastlane/metadata/android/pt-BR/changelogs/40105300.txt new file mode 100644 index 00000000000..4dc17840a30 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105300.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: permalinks para salas, espaços, usuários e mensagens são agora exibidos como pílulas na linha do tempo. Também corrigimos alguns problemas com figurinhas personalizadas e o marcador de lido ficando travado no passado. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40105320.txt b/fastlane/metadata/android/pt-BR/changelogs/40105320.txt new file mode 100644 index 00000000000..d48b5922791 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40105320.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Basicamente correção de bugs. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40106000.txt b/fastlane/metadata/android/pt-BR/changelogs/40106000.txt new file mode 100644 index 00000000000..f2fc40111ff --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40106000.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Element Android está agora usando o Crypto Rust SDK. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40106010.txt b/fastlane/metadata/android/pt-BR/changelogs/40106010.txt new file mode 100644 index 00000000000..f2fc40111ff --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40106010.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Element Android está agora usando o Crypto Rust SDK. +Changelog completo: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/pt-BR/changelogs/40106020.txt b/fastlane/metadata/android/pt-BR/changelogs/40106020.txt new file mode 100644 index 00000000000..f2fc40111ff --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/40106020.txt @@ -0,0 +1,2 @@ +Principais mudanças nesta versão: Element Android está agora usando o Crypto Rust SDK. +Changelog completo: https://github.com/vector-im/element-android/releases From 40fd9f2f7b3453755c13db720700c1f6ac596a13 Mon Sep 17 00:00:00 2001 From: Edgars Andersons Date: Fri, 28 Jul 2023 20:15:28 +0000 Subject: [PATCH 08/66] Translated using Weblate (Latvian) Currently translated at 97.0% (2558 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/lv/ --- .../src/main/res/values-lv/strings.xml | 160 ++++++++++++++++++ 1 file changed, 160 insertions(+) diff --git a/library/ui-strings/src/main/res/values-lv/strings.xml b/library/ui-strings/src/main/res/values-lv/strings.xml index bb7a0b62e19..05c649df246 100644 --- a/library/ui-strings/src/main/res/values-lv/strings.xml +++ b/library/ui-strings/src/main/res/values-lv/strings.xml @@ -2782,4 +2782,164 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. %1$d balsojumi Iznākums tiek atklāts tikai pēc aptaujas izbeigšanas + Aptaujas + Kamera + Galamērķis + Atteikties + + Atteikties no %1$d sesijām + Atteikties no %1$d sesijas + Atteikties no %1$d sesijām + + Parādīt IP adresi + Paslēpt IP adresi + Nosaukums + Sesijas nosaukums + Neapliecinātās sesijas + + Vēl %1$d + Vēl %1$d + Vēl %1$d + + Sesiju pārdēvēšana + Atteikties no šīs sesijas + Augšupielādēt datni + Izveidot aptauju + Balss apraide + Rādīt mazāk + Istabas paziņojums + ${app_name} ekrāna kopīgošana + Netika atrasts neviens cits veids bez sinhronizēšanas fonā. + Pašreizējais galamērķis: %s + Vārteja + Nezināms apliecinājuma stāvoklis + Apskatīt visas (%1$d) + Jāapliecina vai jāatsakās no neapliecinātām sesijām. + Gatavas drošai ziņapmaiņai + Nav gatavas drošai ziņapmaiņai + Vislabākajai drošībai jāatsakās no jebkuras neatpazīstamas vai vairs neizmantotas sesijas. + Jāapliecina savas sesijas paplašinātai drošajai ziņapmaiņai vai jāatsakās no tām, kas nav atpazīstamas vai vairs netiek izmantotas. + Informācija par lietotne, ierīci un darbībām. + Operētājsistēma + Apliecinātas sesijas + Notiek ekrāna kopīgošana + Automātiski apstiprināt Element zvanu logrīkus un piešķirt piekļuvi kamerai/mikrofonam + Atlase + Neapliecinātas + Lietotne + Neapliecināta sesija + Pieejamie veidi + Sesija + Apliecinātas sesijas netika atrastas. + Pārdēvēt sesiju + Izvēlēties, kā saņemt paziņojumus + Google pakalpojumi + + Noņemtas %d ziņu + Noņemta %d ziņa + Noņemtas %d ziņas + + Jāapliecina pašreizējā sesija paplašinātai drošajai ziņapmaiņai. + Atvērt kontaktus + Tālrunis + Sesijas izvērsums + Teksta formatēšana + Iekārta + Sesijas nosaukums + Atrašanās vieta + Veids + Uzlabo sava konta drošību ievērojot šos ieteikumus. + Pārlūks + Pieteikties ar kvadrātkodu + Apliecināt sesiju + Atlasīt + Kopīgot atrašanās vietu + Uzsākt balss apraidi + Kontakts + Paziņot visai istabai + Lietotāji + Sinhronizēšana fonā + Paziņojuma veids + Nevar atrast galamērķi. + Atrašanās vietas tiešraides kopīgošana + Citas sesijas + Tīmeklis + Darbvirsma + Šī sesija ir gatava drošai ziņapmaiņai. + Neapliecināta · Pēdējā darbība %1$s + + Neizmantota %1$d+ dienas (%2$s) + Neizmantota %1$d+ dienu (%2$s) + Neizmantota %1$d+ dienas (%2$s) + + Neapliecinātas sesijas + Pēdējā darbība + Versija + Lūgums ņemt vērā, ka sesiju nosaukumi ir redzami arī cilvēkiem, ar kuriem sazinies. + Pašreiz tiek izmantots %s. + Jāapliecina pašreizējā sesija, lai atklātu šīs sesijas apliecinājuma stāvokli. + Visas sesijas + Drošības ieteikumi + Pašreizējā sesija + Notīrīt atlasi + Nosūtīt uzlīmi + Attēlu bibliotēka + Uzlīmes + Pielikumi + Netika atrasts neviens cits veids bez Google Play pakalpojuma. + + Atrasti %d veidu. + Atrasts %d veids. + Atrasti %d veidi. + + Pašreizējā vārteja: %s + Nezināms ierīces veids + Apskatīt izvērsumu + Neizmantotas sesijas + Apliecinātas + Neizmantotas + Apliecinātas + Neizmantotas sesijas netika atrastas. + Atlasīt sesijas + Atteikties no visām pārējām sesijām + IP adrese + URL + Modelis + Neizmantotās sesijas + Neapliecinātās sesijas ir sesijas, kurās ir notikusi pieteikšanās ar Taviem datiem, bet nav starpapliecinātas. +\n +\nVajadzētu īpaši pārliecināties, ka šīs sesijas ir atpazīstamas, jo tās var norādīt uz nepilnvarotu konta izmantošanu. + Iespējot atrašanās vietas kopīgošanu + + Jāapsver atteikšanās no vecajām sesijām (%1$d dienu vai vairāk), kas vairs netiek izmantotas. + Jāapsver atteikšanās no vecajām sesijām (%1$d diena vai vairāk), kas vairs netiek izmantotas. + Jāapsver atteikšanās no vecajām sesijām (%1$d dienas vai vairāk), kas vairs netiek izmantotas. + + Iespējot Element zvanu atļauju īsceļus + Pēdējā darbība %1$s + Vislielākajai drošībai jāapliecina savas sesijas un jāatsakās no jebkuras neatpazītas vai neizmantotas sesijas. + Neapliecinātas + Apliecināta sesija + Pašreizējā sesija ir gatava drošai ziņapmaiņai. + Vislabākajai drošībai un uzticamībai jāapliecina šī sesija vai jāatsakās no tās. + + Neizmantotas %1$d dienu vai ilgāk + Neizmantotas %1$d dienu vai ilgāk + Neizmantotas %1$d dienas vai ilgāk + + Šī sesija nenodrošina šifrēšanu, tādēļ to nevar apliecināt. + Neizmantotas + Apliecināta · Pēdējā darbība %1$s + + Jāapsver atteikšanās no vecajām sesijām (%1$d dienu vai vairāk), kas vairs netiek izmantotas. + Jāapsver atteikšanās no vecajām sesijām (%1$d diena vai vairāk), kas vairs netiek izmantotas. + Jāapsver atteikšanās no vecajām sesijām (%1$d dienas vai vairāk), kas vairs netiek izmantotas. + + Neapliecināta · Pašreizējā sesija + Neapliecinātas sesijas netika atrastas. + Pielāgoti sesiju nosaukumi var palīdzēt vieglāk atpazīt savas ierīces. + Tu vari izmanto šo ierīci, lai pieteiktos tālruņa vai tīmekļa ierīcē ar kvadrātkodu. Ir divi veidi, kā to izdarīt: + Neizmantotās sesijas ir sesijas, kas kādu laiku nav izmantotas, bet tās turpina saņemt šifrēšanas atslēgas. +\n +\nNeizmantotas sesijas noņemšana uzlabo drošību un veiktspēju un ir vieglāk noteikt, vai jauna sesija ir aizdomīga. \ No newline at end of file From 27bae30eac83fccb9ea68addd3268bf135465e41 Mon Sep 17 00:00:00 2001 From: Edgars Andersons Date: Sat, 29 Jul 2023 08:14:16 +0000 Subject: [PATCH 09/66] Translated using Weblate (Latvian) Currently translated at 99.8% (2633 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/lv/ --- .../src/main/res/values-lv/strings.xml | 99 ++++++++++++++++--- 1 file changed, 88 insertions(+), 11 deletions(-) diff --git a/library/ui-strings/src/main/res/values-lv/strings.xml b/library/ui-strings/src/main/res/values-lv/strings.xml index 05c649df246..3fd59c86d74 100644 --- a/library/ui-strings/src/main/res/values-lv/strings.xml +++ b/library/ui-strings/src/main/res/values-lv/strings.xml @@ -659,7 +659,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Lūdzu, rakstiet savu ieteikumu zemāk. Ieteikumi Palīdzība un par lietotni - Drošība un konfidencialitāte + Drošība un privātums Vispārīgi Publiska Istabas iestatījumi @@ -1236,7 +1236,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Sākotnējā sinhronizācija: \nGaida servera atbildi… Pievienojiet speciālu cilni priekš nelasītiem paziņojumiem galvenajā ekrānā. - Ieslēgt pavilkšanas žestu, lai atbildētu uz ziņu + Laika joslā iespējot atbildēšanu pavelkot Labojumi netika atrasti Ziņu labojumi Rādīt pilnu vēsturi šifrētajās istabās @@ -1877,7 +1877,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Noklusējuma versija Istabu versijas 👓 Ziņu redaktors - Hronoloģija + Laika josla Šī sesija nevar kopīgot šo verifikāciju ar citām sesijām. \nVerifikācija tiks saglabāta lokāli un kopīgota kādā no nākamajām lietotnes versijām. ${app_name} saskārās ar problēmu, atveidojot notikuma ar id \'%1$s\' saturu @@ -2200,7 +2200,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Pavedieni Beta %1$s un %2$s Palīdzēt uzlabot ${app_name} - Atskaņot kustīgos laikjoslas attēlus, tiklīdz tie ir redzami + Atskaņot kustīgos laika joslas attēlus, tiklīdz tie ir redzami ${app_name} ir nepieciešama atļauja, lai parādītu paziņojumus. \nLūgums piešķirt atļauju. @@ -2664,7 +2664,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. IZVEIDOT APTAUJU Nav saņemti balsojumi - Izbeigt šo aptauju\? + Noslēgt šo aptauju\? Nevar uzsākt jaunu balss apraidi Atskaņot vai atsākt balss apraidi Ātri patīt 30 sekundes atpakaļ @@ -2685,11 +2685,11 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Galīgais iznākums, pamatojoties uz %1$d balsojumu Galīgais iznākums, pamatojoties uz %1$d balsojumiem - Aptauja izbeigta + Aptauja noslēgta Labot aptauju - Izbeidza aptauju. + Noslēdza aptauju. Ielādēt vairāk aptauju - Kļūda aptauju ieguvē. + Kļūda aptauju izgūšanā. Pietuvināt līdz pašreizējai atrašanās vietai 15 minūtes Atrašanās vietas tiešraide @@ -2717,7 +2717,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Saņemtais balsojums Noņemt aptauju 8 stundas - Izbeigt aptauju + Noslēgt aptauju Pārtraukt Pārtraukt tiešraides apraidi\? Izveidot aptauju @@ -2725,7 +2725,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. 1 stundu Neizdevās ielādēt karti Iespējot atrašanās vietas tiešraides kopīgošanu - Izbeigt aptauju + Noslēgt aptauju Nav iespējams atšifrēt šo balss apraidi. Lietotne ir jāpārsāknē, lai izmaiņas stātos spēkā. Vai tiešām noņemt šo aptauju\? To pēc noņemšanas vairs nevarēs atgūt. @@ -2781,7 +2781,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. %1$d balsojums %1$d balsojumi - Iznākums tiek atklāts tikai pēc aptaujas izbeigšanas + Iznākums tiek atklāts tikai pēc aptaujas noslēgšanas Aptaujas Kamera Galamērķis @@ -2942,4 +2942,81 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Neizmantotās sesijas ir sesijas, kas kādu laiku nav izmantotas, bet tās turpina saņemt šifrēšanas atslēgas. \n \nNeizmantotas sesijas noņemšana uzlabo drošību un veiktspēju un ir vieglāk noteikt, vai jauna sesija ir aizdomīga. + Ziņa + Otrā ierīcē ir jāpiesakās. + Iestatīt saiti + Padara iespējamu ierakstīt un nosūtīt balss apraidi istabas laika joslā. + Šeit tiks parādītas nelasītās ziņas, kad tādas būs. + Apstiprināt + Ziņa %s + Nav nekā, par ko ziņot. + Jādodas uz Iestatījumi -> Drošība un privātums + Piesakies mobilajā ierīcē\? + Pielietot slīprakstu + nosūtīja video. + Sasaistīšana ar šo ierīci nav nodrošināta. + Jāatlasa \'Nolasīt kvadrātkodu\' + izveidoja aptauju. + Izveidots drošs savienojums + Neveiksmīgs savienojums + Savienojas ar ierīci + Piesakās + Pārslēgt numurētu sarakstu + Pielietot iekļautu kodu + Pārslēgt koda bloku + nosūtīja skaņas datni. + Piekļuves pilnvara sniedz pilnu piekļuvi kontam. To nevajag kopīgot ne ar vienu. + Laipni lūdzam jaunajā skatā! + Jāatlasa \'Parādīt kvadrātkodu\' + Jāsāk pieteikšanās skatā + Rādīt kvadrātkodu šajā ierīcē + Nav atbilstības\? + Jāmēģina vēlreiz + Pielietot pasvītrojumu + Iespējot jauno sesiju pārvaldnieku + Laipni lūdzam ${app_name}, +\n%s! + Pielietot treknrakstu + nosūtīja attēlu. + Pārslēgt vienkāršu sarakstu + Teksts + Iespējot klienta informācijas ierakstīšanu + Piekļūt vietām + Pieprasījums neizdevās. + Pārslēgt pilnekrānu + %s +\nizskatās mazliet tukša. + Sasaistīšana netika pabeigta nepieciešamajā laikā. + Jāatver lietotne otrā ierīcē + Jāsāk pieteikšanās skatā + Saite + Labot saiti + nosūtīja balss ziņu. + noslēdza aptauju. + Aptauja + Ziņa istabā + Noslēgtās aptaujas + Iegūsti labāku pārredzamību un pārraudzību pār visām savām sesijām! + Iespējot balss apraidi + Otrā ierīcē jau ir pieteikšanās. + Ievietot atkāpi + Noņemt atkāpi + Pārslēgt citātu + Izveidot saiti + Piekļuves pilnvara + Šis kvadrātkods ir nederīgs. + Pieteikšanās tika atcelta otrā ierīcē. + Jāatlasa \'Pieteikties ar kvadrātkodu\' + Pielietot pārsvītrojumu + Atbildē uz + nosūtīja datni. + nosūtīja uzlīmi. + Ziņa no %s + Istaba/vieta + Ierakstīt klienta nosaukumu, versiju un URL, lai sesiju pārvaldniekā vieglāk atpazītu sesijas. + Piekļūsti savām vietām (apakšējā labajā stūrī) ātrāk un vienkāršāk kā jebkad iepriekš! + Jāpārbauda ierīce, kurā esi pieteicies, tajā vajadzētu būt attēlotam zemāk redzamajam kodam. Jāapstiprina, ka zemāk esošais kods saskan ar to, kas ir ierīcē: + Pieprasījums tika atteikts otrā ierīcē. + Nolasīt kvadrātkodu + Lūgums nodrošināt, ka šī koda izcelsme ir zināma. Ar ierīču sasaistīšanu kādam tiks nodrošināta pilna piekļuve kontam. \ No newline at end of file From 1bbd4b7e44b63ca24e1fe258490cb6961e4b02a4 Mon Sep 17 00:00:00 2001 From: Edgars Andersons Date: Mon, 31 Jul 2023 05:58:51 +0000 Subject: [PATCH 10/66] Translated using Weblate (Latvian) Currently translated at 99.8% (2633 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/lv/ --- library/ui-strings/src/main/res/values-lv/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ui-strings/src/main/res/values-lv/strings.xml b/library/ui-strings/src/main/res/values-lv/strings.xml index 3fd59c86d74..bf8d2054edb 100644 --- a/library/ui-strings/src/main/res/values-lv/strings.xml +++ b/library/ui-strings/src/main/res/values-lv/strings.xml @@ -2132,7 +2132,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. Rāda visus pavedienus, kuros ir notikusi iesaistīšanās Kopīgot ekrānu Izveidot tiešo ziņu tikai pēc pirmās ziņas - Izmēģināt bagātinātu teksta rakstīšanu (vienkārša teksta ievade būs drīzumā) + Izmēģināt bagātinātu teksta rakstīšanu (vienkārša teksta ievade gaidāma drīzumā) Nekā jauna. %1$s, %2$s un citi Visi pavedieni @@ -2756,7 +2756,7 @@ Nākotnē šī pārbaudes procedūra plānota sarežģītāka. \nJāielādē vairāk aptauju, lai redzētu iepriekšējo dienu aptaujas. Iepriekšējā dienā nav notiekošu aptauju. \nJāielādē vairāk aptauju, lai redzētu iepriekšējo dienu aptaujas. - Iepriekšējās %1$d nav notiekošu aptauju. + Iepriekšējās %1$d dienās nav notiekošu aptauju. \nJāielādē vairāk aptauju, lai redzētu iepriekšējo dienu aptaujas. Apskatīt aptauju laika joslā From 380a0b8de37ce635eb0ce97ec3e1f36d6926ef64 Mon Sep 17 00:00:00 2001 From: Berk Mirsat KAPOT Date: Sun, 30 Jul 2023 17:42:35 +0000 Subject: [PATCH 11/66] Translated using Weblate (Turkish) Currently translated at 58.6% (1546 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/tr/ --- .../src/main/res/values-tr/strings.xml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/library/ui-strings/src/main/res/values-tr/strings.xml b/library/ui-strings/src/main/res/values-tr/strings.xml index 1f0e5be1535..84dbd44c285 100644 --- a/library/ui-strings/src/main/res/values-tr/strings.xml +++ b/library/ui-strings/src/main/res/values-tr/strings.xml @@ -1734,4 +1734,32 @@ Konuları Görüntüle Başlangıç eşitleme isteği Tüm Sohbetler - + Sohbet Başlat + %1$s bir ses yayınını sonlandırdı. + Bir sesli yayını sonlandırdınız. + Oda yarat + Odaları keşfedin + ${app_name}, aşağıdaki nedenden dolayı güncel olması için önbelleği temizlemelidir: +\n %s +\n +\n Bu eylemin uygulamayı yeniden başlatacağını ve biraz zaman alabileceğini unutmayın. + - Bazı kullanıcılar göz ardı edildi + %s çocuğu genişlet + dk. + Devre dışı bırak + sa. + Alanı Değiştir + Yine de oturumu kapat + + %1$d seçildi + %1$d seçildi + + %1$s görünen adını %2$s olarak değiştirdi + Ana sunucuya ulaşılamıyor. Yine de çıkış yaparsanız, bu cihaz cihaz listenizden silinmez, başka bir istemci kullanarak kaldırmak isteyebilirsiniz. + + %d sunucu ACL\'si değişti + %d sunucu ACL değişikliği + + s. + %s çocuğu daralt + \ No newline at end of file From 8885d14ee5b0bcac835edf20147c72656e280282 Mon Sep 17 00:00:00 2001 From: DarkCoder15 Date: Fri, 4 Aug 2023 09:20:48 +0000 Subject: [PATCH 12/66] Translated using Weblate (Russian) Currently translated at 99.9% (2634 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/ru/ --- library/ui-strings/src/main/res/values-ru/strings.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/library/ui-strings/src/main/res/values-ru/strings.xml b/library/ui-strings/src/main/res/values-ru/strings.xml index dad51116e50..bd1f8b79926 100644 --- a/library/ui-strings/src/main/res/values-ru/strings.xml +++ b/library/ui-strings/src/main/res/values-ru/strings.xml @@ -3060,4 +3060,5 @@ Блок кода Подпункт Пункт + Политика пользования \ No newline at end of file From 5580f307beb3ff1cdb7df53c5e9157fccf12eaf9 Mon Sep 17 00:00:00 2001 From: Ihor Hordiichuk Date: Sun, 6 Aug 2023 21:30:53 +0000 Subject: [PATCH 13/66] Translated using Weblate (Ukrainian) Currently translated at 100.0% (2636 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/uk/ --- library/ui-strings/src/main/res/values-uk/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ui-strings/src/main/res/values-uk/strings.xml b/library/ui-strings/src/main/res/values-uk/strings.xml index a621db40b6d..16cd2be76d9 100644 --- a/library/ui-strings/src/main/res/values-uk/strings.xml +++ b/library/ui-strings/src/main/res/values-uk/strings.xml @@ -495,7 +495,7 @@ Вийти з кімнати Встановити тему кімнати Вилучити користувача із вказаним ID - Змінити Ваш псевдонім + Змінити ваше показуване ім\'я Увімкнути/Вимкнути розмітку Markdown Для виправлення керування застосунками Matrix Створити From 30906885ecf98f78b7160b7299c6506ea23aa244 Mon Sep 17 00:00:00 2001 From: Nizami Date: Wed, 9 Aug 2023 10:36:46 +0000 Subject: [PATCH 14/66] Translated using Weblate (Azerbaijani) Currently translated at 9.0% (240 of 2640 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/az/ --- .../src/main/res/values-az/strings.xml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/library/ui-strings/src/main/res/values-az/strings.xml b/library/ui-strings/src/main/res/values-az/strings.xml index b8341cd2b49..40618fdf8a9 100644 --- a/library/ui-strings/src/main/res/values-az/strings.xml +++ b/library/ui-strings/src/main/res/values-az/strings.xml @@ -256,4 +256,25 @@ • IP literallarına uyğunlaşan serverlər qadağan edildi. • IP literallarına uyğunlaşan serverlərə icazə verilir. + Otaqdakı mesaj + Bağlantı + Bağlantı yarat + Anket + Otaq / Məkan + Bağlantını redaktə et + Mətn + Anket başa çatıb. + %1$s ekran adını %2$s olaraq dəyişdi + Daxili kod formatın işlət + Kod blokun dəyiş + Bu otaq üçün əsas ünvanı %1$s olaraq təyin etdiniz. + Mesaj %s + Bu otaq üçün ünvan kimi %2$s-nı sildiniz və %1$s əlavə etdiniz. + Giriş Nişanəniz + %1$s bu otaq üçün əsas ünvanı sildi. + Anket bitdi + %1$s bu otaq üçün əsas ünvanı %2$s olaraq təyin etdi. + Mesaj + %s-dan² mesaj + Giriş nişanəniz hesabınıza tam giriş imkanı verir.Bunu heç kimlə paylaşmayın. \ No newline at end of file From 754ea6a98da758ec463864f2ac415a9f4c15936d Mon Sep 17 00:00:00 2001 From: Ihor Hordiichuk Date: Tue, 8 Aug 2023 20:58:05 +0000 Subject: [PATCH 15/66] Translated using Weblate (Ukrainian) Currently translated at 100.0% (2636 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/uk/ --- .../src/main/res/values-uk/strings.xml | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/library/ui-strings/src/main/res/values-uk/strings.xml b/library/ui-strings/src/main/res/values-uk/strings.xml index 16cd2be76d9..49b3f2e2dd7 100644 --- a/library/ui-strings/src/main/res/values-uk/strings.xml +++ b/library/ui-strings/src/main/res/values-uk/strings.xml @@ -57,7 +57,7 @@ Ви змінили назву кімнати на: %1$s Ви змінили аватар кімнати Ви змінили тему на: %1$s - Ви змінили показуване ім\'я з %1$s на %2$s + Ви змінили псевдонім з %1$s на %2$s Ви змінили свій аватар %1$s, %2$s, %3$s та %4$d інший @@ -85,7 +85,7 @@ Ви починаєте голосовий виклик. Ви починаєте відеовиклик. %1$s змінює аватар кімнати - Ви прибрали показуване ім\'я (%1$s) + Ви вилучили псевдонім (%1$s) Ви вилучили %1$s %1$s запрошує %2$s Ви відхилили запрошення @@ -137,7 +137,7 @@ Ви відповіли на виклик. Ви надіслали дані для налаштування виклику. %s надсилає дані для налаштування виклику. - Ви встановили собі показуване ім\'я %1$s + Ви налаштували псевдонімом %1$s Ви відкликали запрошення для %1$s Ви заблокували %1$s Ви заблокували %1$s @@ -268,7 +268,7 @@ Фільтр переліку користувачів Тут порожньо Аватар - Показуване ім\'я + Псевдонім Додати адресу е-пошти Додати номер телефону Екран системної інформації застосунку. @@ -276,7 +276,7 @@ Тон сповіщення Увімкнути сповіщення для цього облікового запису Увімкнути сповіщення для цього пристрою - Повідомлення, що містять моє показуване ім\'я + Повідомлення з моїм псевдонімом Повідомлення, що містять моє ім\'я користувача В особистих чатах У групових чатах @@ -495,7 +495,7 @@ Вийти з кімнати Встановити тему кімнати Вилучити користувача із вказаним ID - Змінити ваше показуване ім\'я + Змінити псевдонім Увімкнути/Вимкнути розмітку Markdown Для виправлення керування застосунками Matrix Створити @@ -816,7 +816,7 @@ Ваша тема Ваш ідентифікатор користувача URL-адреса аватара - Ваше показуване ім\'я + Ваш псевдонім Скасувати доступ для мене Відкрити у браузері Перезавантажити віджет @@ -1564,7 +1564,7 @@ Зашифровані групові повідомлення Групові повідомлення Моє користувацьке ім\'я - Моє показуване ім\'я + Мій псевдонім Повідомлення, які містять @room Коли кімнати оновлено Зашифровані повідомлення в групових бесідах @@ -2060,7 +2060,7 @@ Показує відомості про користувача Змінює ваш аватар лише у поточній кімнаті Змінює аватар поточної кімнати - Змінює ваше показуване ім\'я лише у поточній кімнаті + Змінює ваш псевдонім лише у поточній кімнаті Установлює назву кімнати Сервер ідентифікації не надав жодних правил Бажаєте поекспериментувати\? @@ -2408,7 +2408,7 @@ Відкрити камеру Ваша система автоматично надсилатиме журнали, коли виникне помилка неможливості розшифрування Автозвіт про помилки шифрування. - Замінити колір показуваного імені + Замінити колір псевдоніма Я вже маю обліковий запис Захищене спілкування. Ви контролюєте все. @@ -2517,8 +2517,8 @@ Час вказати ім’я Додати зображення профілю Ви можете змінити його пізніше - Показуване ім\'я - Виберіть показуване ім\'я + Псевдонім + Оберіть псевдонім Ваш обліковий запис %s створений Вітаємо! На головну @@ -2562,7 +2562,7 @@ \n \nЗауважте, що ця дія перезапустить застосунок, і це може тривати деякий час. Початковий запит синхронізації - Показувати найновіші дані профілю (аватар і показуване ім\'я) для всіх повідомлень. + Показувати найновіші дані профілю (аватар і псевдонім) для всіх повідомлень. Показувати найновіші дані користувача Зайнятий Резервна копія має дійсний підпис від цього користувача. From 45be2749f6a94be569ad88f5990eb5f3211c230f Mon Sep 17 00:00:00 2001 From: Nizami Date: Thu, 10 Aug 2023 14:04:52 +0000 Subject: [PATCH 16/66] Translated using Weblate (Azerbaijani) Currently translated at 9.2% (245 of 2640 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/az/ --- .../ui-strings/src/main/res/values-az/strings.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/library/ui-strings/src/main/res/values-az/strings.xml b/library/ui-strings/src/main/res/values-az/strings.xml index 40618fdf8a9..a0884200372 100644 --- a/library/ui-strings/src/main/res/values-az/strings.xml +++ b/library/ui-strings/src/main/res/values-az/strings.xml @@ -277,4 +277,18 @@ Mesaj %s-dan² mesaj Giriş nişanəniz hesabınıza tam giriş imkanı verir.Bunu heç kimlə paylaşmayın. + + Bu otaq üçün alternativ %1$s ünvanın əlavə etdiniz. + Bu otaq üçün alternativ %1$s ünvanın əlavə etdiniz. + + %1$s bu otaq üçün alternativ ünvanları dəyişdi. + + %1$s bu otaq üçün %2$s alternativ ünvanın əlavə etdi. + %1$s bu otaq üçün %2$s alternativ ünvanın əlavə etdi. + + Bu otaq üçün alternativ ünvanları dəyişdiniz. + + %1$s bu otaq üçün %2$s alternativ ünvanın sildi. + %1$s bu otaq üçün %2$s alternativ ünvanın sildi. + \ No newline at end of file From ad7934847ca96419929a4bb9aacf2deeb3644a9b Mon Sep 17 00:00:00 2001 From: Someone Date: Sat, 12 Aug 2023 04:47:50 +0000 Subject: [PATCH 17/66] Translated using Weblate (Vietnamese) Currently translated at 88.2% (2326 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/vi/ --- library/ui-strings/src/main/res/values-vi/strings.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/ui-strings/src/main/res/values-vi/strings.xml b/library/ui-strings/src/main/res/values-vi/strings.xml index d7f2c07a084..a487fe22ce4 100644 --- a/library/ui-strings/src/main/res/values-vi/strings.xml +++ b/library/ui-strings/src/main/res/values-vi/strings.xml @@ -2554,4 +2554,6 @@ Phiên Thiết bị Hoạt động cuối %1$s + Tiếp tục + Bận \ No newline at end of file From 23e7bdbae3640350fcfff49bdf8363f9a6718f62 Mon Sep 17 00:00:00 2001 From: franconian Date: Sun, 13 Aug 2023 20:03:52 +0000 Subject: [PATCH 18/66] Translated using Weblate (German) Currently translated at 100.0% (2640 of 2640 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/de/ --- .../src/main/res/values-de/strings.xml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/library/ui-strings/src/main/res/values-de/strings.xml b/library/ui-strings/src/main/res/values-de/strings.xml index 0871842a4df..22c5230f0b6 100644 --- a/library/ui-strings/src/main/res/values-de/strings.xml +++ b/library/ui-strings/src/main/res/values-de/strings.xml @@ -224,7 +224,7 @@ Du hast die Server-ACL für diesen Raum gesetzt. %s hat die Server-Zugriffssteuerungsliste (ACL) für diesen Raum gesetzt. Einstellungen - Akzeptiere + Akzeptieren Ablehnen Anruf beenden Ok @@ -263,7 +263,7 @@ Nur Matrix-Kontakte Keine Ergebnisse Räume - Sende Protokolle + Protokolle senden Absturzberichte übermitteln Bildschirmfoto übermitteln Problem melden @@ -1622,9 +1622,9 @@ Versehentliche Anrufe verhindern Bitte um Bestätigung, bevor du einen Anruf tätigst Einrichten - Dir fehlt die Berechtigung in diesem Raum eine Konferenz zu starten - Beginne eine Videokonferenz - Beginne eine Audiokonferenz + Du bist nicht berechtigt, in diesem Raum ein Konferenzgespräch zu starten + Videokonferenz starten + Audiokonferenz starten Konferenzen nutzen die Jitsi-Sicherheits- und Berechtigungsrichtlinien. Alle im Raum Anwesenden können während der Konferenz beitreten. Du kannst dich nicht selbst anrufen Du kannst dich nicht selbst anrufen, warte bis Teilnehmer die Einladung annehmen @@ -1670,7 +1670,7 @@ Umfrage Reagierte mit: %s Der Link war fehlerhaft - Du bist nicht berechtigt, einen Anruf in diesem Raum zu beginnen + Du bist nicht berechtigt, in diesem Raum einen Anruf zu beginnen Ergebnis der Überprüfung Kontodaten vom Typ %1$s löschen\? \n @@ -1681,8 +1681,8 @@ Die Applikation wartet auf den PUSH Push testen Gebannte Nutzer filtern - Du bist nicht berechtigt einen Anruf zu beginnen - Du hast keine Berechtigung ein Konferenzgespräch zu starten + Du bist nicht berechtigt, einen Anruf zu beginnen + Du bist nicht berechtigt, ein Konferenzgespräch zu starten Details wie Raumnamen und Nachrichteninhalt zeigen. Inhalt in Benachrichtigungen anzeigen PIN-Code ist die einzige Möglichkeit ${app_name} zu entsperren. @@ -2128,9 +2128,9 @@ %d verpasste Sprachanrufe Heim-Server-API-Adresse - Um Sprachnachrichten zu senden, erlaube bitte Zugriff aufs Mikrofon. - Um fortzufahren, erlaube bitte in den Systemeinstellungen Zugriff auf die Kamera. - Für diese Aktion fehlen einige Berechtigungen, bitte erlaube diese in den Systemeinstellungen. + Um Sprachnachrichten zu senden, gewähre bitte den Zugriff aufs Mikrofon. + Um fortzufahren, gewähre bitte in den Systemeinstellungen den Zugriff auf die Kamera. + Für diese Aktion fehlen einige Berechtigungen, bitte gewähre diese in den Systemeinstellungen. Wische zum Abbrechen Spaces mit Zugriff auf Space-Mitgliedern Auffinden und Zugriff erlauben. @@ -2877,7 +2877,7 @@ %1$s beendete eine Sprachübertragung. Möchtest du die Übertragung wirklich beenden\? Dies wird die Übertragung beenden und die vollständige Aufnahme im Raum bereitstellen. Live-Übertragung beenden\? - Ja, beende + Ja, beenden Link setzen Link bearbeiten Link erstellen From eeb67e193414a5ace9d1178db415237794c9e0bf Mon Sep 17 00:00:00 2001 From: franconian Date: Sun, 13 Aug 2023 21:46:37 +0000 Subject: [PATCH 19/66] Translated using Weblate (German) Currently translated at 100.0% (2640 of 2640 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/de/ --- .../src/main/res/values-de/strings.xml | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/library/ui-strings/src/main/res/values-de/strings.xml b/library/ui-strings/src/main/res/values-de/strings.xml index 22c5230f0b6..5698cdf2687 100644 --- a/library/ui-strings/src/main/res/values-de/strings.xml +++ b/library/ui-strings/src/main/res/values-de/strings.xml @@ -692,7 +692,7 @@ Laute Benachrichtigungen einstellen Anrufbenachrichtigung einstellen Stumme Benachrichtigungen einstellen - Wähle LED-Farbe, Vibration, Ton … + LED-Farbe, Vibration, Ton auswählen … Stumm Bitte eine Passphrase eingeben Passphrase ist zu schwach @@ -712,7 +712,7 @@ Historie entschlüsseln Von Sicherung wiederherstellen Lösche Sicherung - Lösche Sicherung … + Sicherung löschen … Lösche Sicherung Präferenz der Benachrichtigungen nach Ereignis [%1$s] @@ -728,7 +728,7 @@ \nSichere deine Schlüssel, um sie nicht zu verlieren. Wiederherstellungsschlüssel aus Passphrase generieren. Dies kann mehrere Sekunden brauchen. Du verlierst möglicherweise den Zugang zu deinen Nachrichten, wenn du dich abmeldest oder das Gerät verlierst. - Rufe Sicherungsversion ab … + Sicherungsversion abrufen … Nutze deine Wiederherstellungs-Passphrase, um deinen verschlüsselten Nachrichtenverlauf lesen zu können nutze deinen Wiederherstellungsschlüssel Wenn du deine Wiederherstellungspassphrase nicht weist, kannst du %s. @@ -793,15 +793,15 @@ Sichere deine Schlüssel. Dies könnte einige Minuten dauern … Alle Schlüssel sind gesichert - Sichere einen Schlüssel … - Sichere %d Schlüssel … + Einen Schlüssel sichern … + %d Schlüssel sichern … Version Algorithmus Signatur - Berechne Wiederherstellungsschlüssel … - Lade Schlüssel herunter … - Importiere Schlüssel … + Wiederherstellungsschlüssel berechnen … + Schlüssel herunterladen … + Schlüssel importieren … Ignorieren Mit Single-Sign-On anmelden Nachricht mit Eingabetaste senden @@ -903,8 +903,8 @@ Versteckte Ereignisse in der Zeitleiste anzeigen Direktnachrichten Warten … - Vorschaubild wird verschlüsselt … - Verschlüssle Datei … + Vorschaubild verschlüsseln … + Datei verschlüsseln … (bearbeitet) Nachrichtenbearbeitung Keine Änderungen gefunden @@ -912,7 +912,7 @@ Sende eine neue Direktnachricht Das Raumverzeichnis anzeigen Link in die Zwischenablage kopiert - Erstelle Raum … + Raum erstellen … Bearbeitungsverlauf anzeigen E2E-Schlüssel aus der Datei \"%1$s\" importieren. Vielen Dank, der Vorschlag wurde erfolgreich gesendet @@ -1003,7 +1003,7 @@ Anhang senden Navigationsmenü öffnen Raumerstellungsmenü öffnen - Schließe das Raumerstellungsmenü … + Das Raumerstellungsmenü schließen … Erstelle eine neue Direktnachricht Erstelle einen neuen Raum Schließe Key-Backup-Einblendung @@ -1030,15 +1030,15 @@ Inhalt gemeldet Dieser Inhalt wurde gemeldet. \n -\nWenn du keine weiteren Inhalte dieser Person sehen möchtest, kannst sie ignorieren, um ihre Nachrichten auszublenden. +\nWenn du keine Inhalte mehr von dieser Person sehen möchtest, kannst du sie ignorieren, um ihre Nachrichten auszublenden. Als Spam gemeldet Dieser Inhalt wurde als Spam gemeldet. \n -\nWenn du keine weiteren Inhalte dieser Person sehen möchtest, kannst sie ignorieren, um ihre Nachrichten auszublenden. +\nWenn du keine Inhalte mehr von dieser Person sehen möchtest, kannst du sie ignorieren, um ihre Nachrichten auszublenden. Als unangebracht gemeldet Dieser Inhalt wurde als unangebracht gemeldet. \n -\nWenn du keine weiteren Inhalte dieser Person sehen möchtest, kannst sie ignorieren, um ihre Nachrichten auszublenden. +\nWenn du keine Inhalte mehr von dieser Person sehen möchtest, kannst du sie ignorieren, um ihre Nachrichten auszublenden. Nutzer ignorieren Alle Nachrichten (laut) Alle Nachrichten @@ -1524,8 +1524,8 @@ DATEIEN %1$s um %2$s Es gibt in diesem Raum keine Dateien - Füge zu Favoriten hinzu - Entferne von Favoriten + Zu Favoriten hinzufügen + Aus Favoriten entfernen Du hast keine Änderungen gemacht Du hast den Raum für alle, die den Link kennen, zugänglich gemacht. Du hast den Raumbeitritt auf Einladungen beschränkt. @@ -1729,11 +1729,11 @@ Nur die Anzahl ungelesener Nachrichten in der Benachrichtigung zeigen. Füge Bild hinzu per Der Raum ist noch nicht erstellt. Raumerstellung abbrechen\? - Zu niedrige Priorität hinzufügen + Zu niedriger Priorität hinzufügen Thema Änderungen verwerfen Es gibt ungespeicherte Änderungen. Änderungen verwerfen\? - Von niedrige Priorität entfernen + Aus niedriger Priorität entfernen Rotieren und Zuschneiden Raumeinstellungen Raumthema (optional) @@ -2026,7 +2026,7 @@ Die Datei ist zu groß. Video wird komprimiert (%d%%) - Komprimiere Bild … + Bild komprimieren … Als Standard festsetzen und nicht mehr fragen Jedes Mal fragen Gib den Namen des neuen Servers ein, den du erkunden möchtest. From 3216fa614699e84e237478f7793cf8da40273d48 Mon Sep 17 00:00:00 2001 From: phardyle Date: Tue, 15 Aug 2023 11:26:41 +0000 Subject: [PATCH 20/66] Translated using Weblate (Chinese (Simplified)) Currently translated at 99.1% (2613 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/zh_Hans/ --- library/ui-strings/src/main/res/values-zh-rCN/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ui-strings/src/main/res/values-zh-rCN/strings.xml b/library/ui-strings/src/main/res/values-zh-rCN/strings.xml index 9abc3b25e4c..30fba771951 100644 --- a/library/ui-strings/src/main/res/values-zh-rCN/strings.xml +++ b/library/ui-strings/src/main/res/values-zh-rCN/strings.xml @@ -654,7 +654,7 @@ 设置静音通知 选择LED颜色、震动、铃声…… 加密密钥管理 - 恢复已加密消息 + 已加密消息恢复 管理密钥备份 静音 请输入一个用户名。 From 83e2419c303cbaacf4066527cd8336e276611ad2 Mon Sep 17 00:00:00 2001 From: phardyle Date: Tue, 15 Aug 2023 11:31:38 +0000 Subject: [PATCH 21/66] Translated using Weblate (Chinese (Traditional)) Currently translated at 100.0% (2636 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/zh_Hant/ --- library/ui-strings/src/main/res/values-zh-rTW/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ui-strings/src/main/res/values-zh-rTW/strings.xml b/library/ui-strings/src/main/res/values-zh-rTW/strings.xml index 8c51b443954..e3593d61c7b 100644 --- a/library/ui-strings/src/main/res/values-zh-rTW/strings.xml +++ b/library/ui-strings/src/main/res/values-zh-rTW/strings.xml @@ -748,7 +748,7 @@ 備份 除非您在登出前備份好金鑰,否則將無法再存取所有加密訊息。 您確定要登出嗎? - 還原加密訊息 + 加密訊息還原 請輸入使用者名稱。 開始使用金鑰備份 (進階) From 92399aba0758aa816e56383582afc12b2bf2342b Mon Sep 17 00:00:00 2001 From: LinAGKar Date: Thu, 17 Aug 2023 19:28:21 +0000 Subject: [PATCH 22/66] Translated using Weblate (Swedish) Currently translated at 100.0% (2640 of 2640 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/sv/ --- library/ui-strings/src/main/res/values-sv/strings.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/ui-strings/src/main/res/values-sv/strings.xml b/library/ui-strings/src/main/res/values-sv/strings.xml index 3ec7b607788..7991793f851 100644 --- a/library/ui-strings/src/main/res/values-sv/strings.xml +++ b/library/ui-strings/src/main/res/values-sv/strings.xml @@ -2958,4 +2958,12 @@ App uppdaterad Kan inte nå hemservern. Om du ändå loggar ut kommer den här enheten inte att raderas från din enhetslista, du kanske vill ta bort den med en annan klient. Logga ut ändå + Kunde in hitta profiler för Matrix-ID:n nedan. Vill du starta en chatt ändå\? +\n +\n%s + Starta chatt ändå + Kunde inte hitta profiler för Matrix-ID:n nedan. Vill du bjuda in dem ändå\? +\n +\n%s + Bjud in ändå \ No newline at end of file From 39a783196eaa9139b14c8d9bc2ce82c4922782b4 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 21 Aug 2023 17:24:48 +0200 Subject: [PATCH 23/66] Hide setting entry point to manage 3Pid if homeserver capability `m.3pid_changes` is set to `false`. --- changelog.d/8615.misc | 1 + .../app/features/settings/VectorSettingsGeneralFragment.kt | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 changelog.d/8615.misc diff --git a/changelog.d/8615.misc b/changelog.d/8615.misc new file mode 100644 index 00000000000..c89b295377c --- /dev/null +++ b/changelog.d/8615.misc @@ -0,0 +1 @@ +Use 3PID capability to show / hide email UI in settings diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt b/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt index dceb92f6e2b..ac34764f5fe 100644 --- a/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt @@ -101,6 +101,9 @@ class VectorSettingsGeneralFragment : private val mPasswordPreference by lazy { findPreference(VectorPreferences.SETTINGS_CHANGE_PASSWORD_PREFERENCE_KEY)!! } + private val mManage3pidsPreference by lazy { + findPreference(VectorPreferences.SETTINGS_EMAILS_AND_PHONE_NUMBERS_PREFERENCE_KEY)!! + } private val mIdentityServerPreference by lazy { findPreference(VectorPreferences.SETTINGS_IDENTITY_SERVER_PREFERENCE_KEY)!! } @@ -197,6 +200,10 @@ class VectorSettingsGeneralFragment : mPasswordPreference.isVisible = false } + // Manage 3Pid + // Hide the preference if 3pids can not be updated + mManage3pidsPreference.isVisible = homeServerCapabilities.canChange3pid + val openDiscoveryScreenPreferenceClickListener = Preference.OnPreferenceClickListener { (requireActivity() as VectorSettingsActivity).navigateTo( DiscoverySettingsFragment::class.java, From 8f6edba40364cd923f700c2e10367e1bc8d5e87f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 21 Aug 2023 18:00:41 +0200 Subject: [PATCH 24/66] Fix typo --- .../android/sdk/internal/auth/DefaultAuthenticationService.kt | 2 +- .../matrix/android/sdk/internal/auth/data/LoginFlowResponse.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/DefaultAuthenticationService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/DefaultAuthenticationService.kt index bbef75a21d8..e852c61185b 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/DefaultAuthenticationService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/DefaultAuthenticationService.kt @@ -298,7 +298,7 @@ internal class DefaultAuthenticationService @Inject constructor( } // If an m.login.sso flow is present that is flagged as being for MSC3824 OIDC compatibility then we only return that flow - val oidcCompatibilityFlow = loginFlowResponse.flows.orEmpty().firstOrNull { it.type == "m.login.sso" && it.delegatedOidcCompatibilty == true } + val oidcCompatibilityFlow = loginFlowResponse.flows.orEmpty().firstOrNull { it.type == "m.login.sso" && it.delegatedOidcCompatibility == true } val flows = if (oidcCompatibilityFlow != null) listOf(oidcCompatibilityFlow) else loginFlowResponse.flows val supportsGetLoginTokenFlow = loginFlowResponse.flows.orEmpty().firstOrNull { it.type == "m.login.token" && it.getLoginToken == true } != null diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/data/LoginFlowResponse.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/data/LoginFlowResponse.kt index ea749a56b8b..2e52740ed48 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/data/LoginFlowResponse.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/data/LoginFlowResponse.kt @@ -51,7 +51,7 @@ internal data class LoginFlow( * See [MSC3824](https://github.com/matrix-org/matrix-spec-proposals/pull/3824) */ @Json(name = "org.matrix.msc3824.delegated_oidc_compatibility") - val delegatedOidcCompatibilty: Boolean? = null, + val delegatedOidcCompatibility: Boolean? = null, /** * Whether a login flow of type m.login.token could accept a token issued using /login/get_token. From 12395e9b04c24f92583c101774d8e60cd9d1894f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 22 Aug 2023 11:40:47 +0200 Subject: [PATCH 25/66] OIDC redirect to the web page to delete a session (legacy session manager) #8616 --- .../features/settings/devices/DevicesViewEvents.kt | 2 ++ .../features/settings/devices/DevicesViewModel.kt | 14 ++++++++++++++ .../devices/VectorSettingsDevicesFragment.kt | 4 ++++ 3 files changed, 20 insertions(+) diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/DevicesViewEvents.kt b/vector/src/main/java/im/vector/app/features/settings/devices/DevicesViewEvents.kt index c97f3531107..de9671e3600 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/DevicesViewEvents.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/DevicesViewEvents.kt @@ -50,4 +50,6 @@ sealed class DevicesViewEvents : VectorViewEvents { data class ShowManuallyVerify(val cryptoDeviceInfo: CryptoDeviceInfo) : DevicesViewEvents() object PromptResetSecrets : DevicesViewEvents() + + data class OpenBrowser(val url: String) : DevicesViewEvents() } diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/DevicesViewModel.kt b/vector/src/main/java/im/vector/app/features/settings/devices/DevicesViewModel.kt index 526a6006e10..5a1e602808d 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/DevicesViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/DevicesViewModel.kt @@ -346,6 +346,20 @@ class DevicesViewModel @AssistedInject constructor( private fun handleDelete(action: DevicesAction.Delete) { val deviceId = action.deviceId + val accountManagementUrl = session.homeServerCapabilitiesService().getHomeServerCapabilities().externalAccountManagementUrl + if (accountManagementUrl != null) { + // Open external browser to delete this session + _viewEvents.post( + DevicesViewEvents.OpenBrowser( + url = accountManagementUrl.removeSuffix("/") + "?action=session_end&device_id=$deviceId" + ) + ) + } else { + doDelete(deviceId) + } + } + + private fun doDelete(deviceId: String) { setState { copy( request = Loading() diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/VectorSettingsDevicesFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/VectorSettingsDevicesFragment.kt index 5e2f0b21f28..9cb314b2b75 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/VectorSettingsDevicesFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/VectorSettingsDevicesFragment.kt @@ -35,6 +35,7 @@ import im.vector.app.core.extensions.cleanup import im.vector.app.core.extensions.configureWith import im.vector.app.core.extensions.registerStartForActivityResult import im.vector.app.core.platform.VectorBaseFragment +import im.vector.app.core.utils.openUrlInChromeCustomTab import im.vector.app.databinding.DialogBaseEditTextBinding import im.vector.app.databinding.FragmentGenericRecyclerBinding import im.vector.app.features.auth.ReAuthActivity @@ -95,6 +96,9 @@ class VectorSettingsDevicesFragment : is DevicesViewEvents.PromptResetSecrets -> { navigator.open4SSetup(requireActivity(), SetupMode.PASSPHRASE_AND_NEEDED_SECRETS_RESET) } + is DevicesViewEvents.OpenBrowser -> { + openUrlInChromeCustomTab(requireContext(), null, it.url) + } } } } From 425441546e5d751fb4baba21cd1807d8b2157e67 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 22 Aug 2023 12:04:52 +0200 Subject: [PATCH 26/66] Format --- .../devices/v2/othersessions/OtherSessionsFragment.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt index cee90986cd7..78075ca1851 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt @@ -308,7 +308,10 @@ class OtherSessionsFragment : ) ) views.otherSessionsNotFoundTextView.text = getString(R.string.device_manager_other_sessions_no_inactive_sessions_found) - updateSecurityLearnMoreButton(R.string.device_manager_learn_more_sessions_inactive_title, R.string.device_manager_learn_more_sessions_inactive) + updateSecurityLearnMoreButton( + R.string.device_manager_learn_more_sessions_inactive_title, + R.string.device_manager_learn_more_sessions_inactive + ) } DeviceManagerFilterType.ALL_SESSIONS -> { /* NOOP. View is not visible */ } From 8941e6396c555b0fa17230ad4629356875d04837 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 22 Aug 2023 12:04:38 +0200 Subject: [PATCH 27/66] Hide multi signout if we have an external account manager (#8616) --- .../settings/devices/v2/DevicesViewModel.kt | 14 +++++++++++++- .../settings/devices/v2/DevicesViewState.kt | 1 + .../v2/VectorSettingsDevicesFragment.kt | 18 +++++++++++------- .../v2/othersessions/OtherSessionsFragment.kt | 11 ++++++++--- .../v2/othersessions/OtherSessionsViewModel.kt | 14 +++++++++++++- .../v2/othersessions/OtherSessionsViewState.kt | 1 + 6 files changed, 47 insertions(+), 12 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt index f2e6b25f325..369150d45ea 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt @@ -40,7 +40,7 @@ import timber.log.Timber class DevicesViewModel @AssistedInject constructor( @Assisted initialState: DevicesViewState, - activeSessionHolder: ActiveSessionHolder, + private val activeSessionHolder: ActiveSessionHolder, private val getCurrentSessionCrossSigningInfoUseCase: GetCurrentSessionCrossSigningInfoUseCase, private val getDeviceFullInfoListUseCase: GetDeviceFullInfoListUseCase, private val refreshDevicesOnCryptoDevicesChangeUseCase: RefreshDevicesOnCryptoDevicesChangeUseCase, @@ -69,6 +69,18 @@ class DevicesViewModel @AssistedInject constructor( refreshDeviceList() refreshIpAddressVisibility() observePreferences() + initExternalAccountManagementUrl() + } + + private fun initExternalAccountManagementUrl() { + setState { + copy( + externalAccountManagementUrl = activeSessionHolder.getSafeActiveSession() + ?.homeServerCapabilitiesService() + ?.getHomeServerCapabilities() + ?.externalAccountManagementUrl + ) + } } override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) { diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewState.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewState.kt index 75d0f132bb9..863ecd17a30 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewState.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewState.kt @@ -26,6 +26,7 @@ data class DevicesViewState( val devices: Async = Uninitialized, val isLoading: Boolean = false, val isShowingIpAddress: Boolean = false, + val externalAccountManagementUrl: String? = null, ) : MavericksState data class DeviceFullInfoList( diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/VectorSettingsDevicesFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/VectorSettingsDevicesFragment.kt index ec21970f944..28500646098 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/VectorSettingsDevicesFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/VectorSettingsDevicesFragment.kt @@ -290,8 +290,8 @@ class VectorSettingsDevicesFragment : val unverifiedSessionsCount = deviceFullInfoList?.unverifiedSessionsCount ?: 0 renderSecurityRecommendations(inactiveSessionsCount, unverifiedSessionsCount) - renderCurrentSessionView(currentDeviceInfo, hasOtherDevices = otherDevices?.isNotEmpty().orFalse()) - renderOtherSessionsView(otherDevices, state.isShowingIpAddress) + renderCurrentSessionView(currentDeviceInfo, hasOtherDevices = otherDevices?.isNotEmpty().orFalse(), state) + renderOtherSessionsView(otherDevices, state) } else { hideSecurityRecommendations() hideCurrentSessionView() @@ -347,13 +347,16 @@ class VectorSettingsDevicesFragment : hideInactiveSessionsRecommendation() } - private fun renderOtherSessionsView(otherDevices: List?, isShowingIpAddress: Boolean) { + private fun renderOtherSessionsView(otherDevices: List?, state: DevicesViewState) { + val isShowingIpAddress = state.isShowingIpAddress if (otherDevices.isNullOrEmpty()) { hideOtherSessionsView() } else { views.deviceListHeaderOtherSessions.isVisible = true val colorDestructive = colorProvider.getColorFromAttribute(R.attr.colorError) val multiSignoutItem = views.deviceListHeaderOtherSessions.menu.findItem(R.id.otherSessionsHeaderMultiSignout) + // Hide multi signout if we have an external account manager + multiSignoutItem.isVisible = state.externalAccountManagementUrl == null val nbDevices = otherDevices.size multiSignoutItem.title = stringProvider.getQuantityString(R.plurals.device_manager_other_sessions_multi_signout_all, nbDevices, nbDevices) multiSignoutItem.setTextColor(colorDestructive) @@ -377,23 +380,24 @@ class VectorSettingsDevicesFragment : views.deviceListOtherSessions.isVisible = false } - private fun renderCurrentSessionView(currentDeviceInfo: DeviceFullInfo?, hasOtherDevices: Boolean) { + private fun renderCurrentSessionView(currentDeviceInfo: DeviceFullInfo?, hasOtherDevices: Boolean, state: DevicesViewState) { currentDeviceInfo?.let { - renderCurrentSessionHeaderView(hasOtherDevices) + renderCurrentSessionHeaderView(hasOtherDevices, state) renderCurrentSessionListView(it) } ?: run { hideCurrentSessionView() } } - private fun renderCurrentSessionHeaderView(hasOtherDevices: Boolean) { + private fun renderCurrentSessionHeaderView(hasOtherDevices: Boolean, state: DevicesViewState) { views.deviceListHeaderCurrentSession.isVisible = true val colorDestructive = colorProvider.getColorFromAttribute(R.attr.colorError) val signoutSessionItem = views.deviceListHeaderCurrentSession.menu.findItem(R.id.currentSessionHeaderSignout) signoutSessionItem.setTextColor(colorDestructive) val signoutOtherSessionsItem = views.deviceListHeaderCurrentSession.menu.findItem(R.id.currentSessionHeaderSignoutOtherSessions) signoutOtherSessionsItem.setTextColor(colorDestructive) - signoutOtherSessionsItem.isVisible = hasOtherDevices + // Hide signout other sessions if we have an external account manager + signoutOtherSessionsItem.isVisible = hasOtherDevices && state.externalAccountManagementUrl == null } private fun renderCurrentSessionListView(currentDeviceInfo: DeviceFullInfo) { diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt index 78075ca1851..f935cb83abf 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt @@ -103,10 +103,15 @@ class OtherSessionsFragment : val nbDevices = viewState.devices()?.size ?: 0 stringProvider.getQuantityString(R.plurals.device_manager_other_sessions_multi_signout_all, nbDevices, nbDevices) } - multiSignoutItem.isVisible = if (viewState.isSelectModeEnabled) { - viewState.devices.invoke()?.any { it.isSelected }.orFalse() + multiSignoutItem.isVisible = if (viewState.externalAccountManagementUrl != null) { + // Hide multi signout if we have an external account manager + false } else { - viewState.devices.invoke()?.isNotEmpty().orFalse() + if (viewState.isSelectModeEnabled) { + viewState.devices.invoke()?.any { it.isSelected }.orFalse() + } else { + viewState.devices.invoke()?.isNotEmpty().orFalse() + } } val showAsActionFlag = if (viewState.isSelectModeEnabled) MenuItem.SHOW_AS_ACTION_IF_ROOM else MenuItem.SHOW_AS_ACTION_NEVER multiSignoutItem.setShowAsAction(showAsActionFlag or MenuItem.SHOW_AS_ACTION_WITH_TEXT) diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewModel.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewModel.kt index a5282e7ba2d..3d41850027d 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewModel.kt @@ -41,7 +41,7 @@ import timber.log.Timber class OtherSessionsViewModel @AssistedInject constructor( @Assisted private val initialState: OtherSessionsViewState, - activeSessionHolder: ActiveSessionHolder, + private val activeSessionHolder: ActiveSessionHolder, private val getDeviceFullInfoListUseCase: GetDeviceFullInfoListUseCase, private val signoutSessionsUseCase: SignoutSessionsUseCase, private val pendingAuthHandler: PendingAuthHandler, @@ -65,6 +65,18 @@ class OtherSessionsViewModel @AssistedInject constructor( observeDevices(initialState.currentFilter) refreshIpAddressVisibility() observePreferences() + initExternalAccountManagementUrl() + } + + private fun initExternalAccountManagementUrl() { + setState { + copy( + externalAccountManagementUrl = activeSessionHolder.getSafeActiveSession() + ?.homeServerCapabilitiesService() + ?.getHomeServerCapabilities() + ?.externalAccountManagementUrl + ) + } } override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) { diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewState.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewState.kt index f4dd3640ee6..ccb3e57f41e 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewState.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewState.kt @@ -29,6 +29,7 @@ data class OtherSessionsViewState( val isSelectModeEnabled: Boolean = false, val isLoading: Boolean = false, val isShowingIpAddress: Boolean = false, + val externalAccountManagementUrl: String? = null, ) : MavericksState { constructor(args: OtherSessionsArgs) : this(excludeCurrentDevice = args.excludeCurrentDevice) From 880ed69f973460628817a4ddd951851b5d70fd49 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 22 Aug 2023 12:17:23 +0200 Subject: [PATCH 28/66] OIDC redirect to the web page to delete a session (new session manager) #8616 --- .../v2/overview/SessionOverviewFragment.kt | 18 ++++++++++++++---- .../v2/overview/SessionOverviewViewModel.kt | 12 ++++++++++++ .../v2/overview/SessionOverviewViewState.kt | 1 + 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewFragment.kt index 399f99201b2..7b10939072e 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewFragment.kt @@ -39,6 +39,7 @@ import im.vector.app.core.platform.VectorMenuProvider import im.vector.app.core.resources.ColorProvider import im.vector.app.core.resources.DrawableProvider import im.vector.app.core.resources.StringProvider +import im.vector.app.core.utils.openUrlInChromeCustomTab import im.vector.app.databinding.FragmentSessionOverviewBinding import im.vector.app.features.auth.ReAuthActivity import im.vector.app.features.crypto.recover.SetupMode @@ -135,10 +136,19 @@ class SessionOverviewFragment : activity?.let { SignOutUiWorker(it).perform() } } - private fun confirmSignoutOtherSession() { - activity?.let { - buildConfirmSignoutDialogUseCase.execute(it, this::signoutSession) - .show() + private fun confirmSignoutOtherSession() = withState(viewModel) { state -> + if (state.externalAccountManagementUrl != null) { + // Manage in external account manager + openUrlInChromeCustomTab( + requireContext(), + null, + state.externalAccountManagementUrl.removeSuffix("/") + "?action=session_end&device_id=${state.deviceId}" + ) + } else { + activity?.let { + buildConfirmSignoutDialogUseCase.execute(it, this::signoutSession) + .show() + } } } diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewModel.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewModel.kt index 55866cb8c41..80db4717f0c 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewModel.kt @@ -75,6 +75,18 @@ class SessionOverviewViewModel @AssistedInject constructor( observeNotificationsStatus(initialState.deviceId) refreshIpAddressVisibility() observePreferences() + initExternalAccountManagementUrl() + } + + private fun initExternalAccountManagementUrl() { + setState { + copy( + externalAccountManagementUrl = activeSessionHolder.getSafeActiveSession() + ?.homeServerCapabilitiesService() + ?.getHomeServerCapabilities() + ?.externalAccountManagementUrl + ) + } } override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) { diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewState.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewState.kt index 0f66605f988..f6a1307a5fa 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewState.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/overview/SessionOverviewViewState.kt @@ -29,6 +29,7 @@ data class SessionOverviewViewState( val isLoading: Boolean = false, val notificationsStatus: NotificationsStatus = NotificationsStatus.NOT_SUPPORTED, val isShowingIpAddress: Boolean = false, + val externalAccountManagementUrl: String? = null, ) : MavericksState { constructor(args: SessionOverviewArgs) : this( deviceId = args.deviceId From dc19380fbffd0c1cf837bdc275633c51770ccb3f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 22 Aug 2023 12:41:13 +0200 Subject: [PATCH 29/66] Changelog --- changelog.d/8616.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/8616.misc diff --git a/changelog.d/8616.misc b/changelog.d/8616.misc new file mode 100644 index 00000000000..58a2596287c --- /dev/null +++ b/changelog.d/8616.misc @@ -0,0 +1 @@ +If an external account manager is configured on the server, use it to delete other sessions and hide the multi session deletion. From 9821487a8ecb1243309a10094e4dd3ac5c49222f Mon Sep 17 00:00:00 2001 From: Vri Date: Tue, 22 Aug 2023 16:04:55 +0000 Subject: [PATCH 30/66] Translated using Weblate (German) Currently translated at 100.0% (102 of 102 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/de/ --- fastlane/metadata/android/de-DE/changelogs/40106030.txt | 2 ++ fastlane/metadata/android/de-DE/changelogs/40106050.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/de-DE/changelogs/40106030.txt create mode 100644 fastlane/metadata/android/de-DE/changelogs/40106050.txt diff --git a/fastlane/metadata/android/de-DE/changelogs/40106030.txt b/fastlane/metadata/android/de-DE/changelogs/40106030.txt new file mode 100644 index 00000000000..80ee810eec8 --- /dev/null +++ b/fastlane/metadata/android/de-DE/changelogs/40106030.txt @@ -0,0 +1,2 @@ +Die wichtigsten Änderungen in dieser Version: Element Android nutzt nun das Crypto-Rust-SDK. +Vollständiges Änderungsprotokoll: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/de-DE/changelogs/40106050.txt b/fastlane/metadata/android/de-DE/changelogs/40106050.txt new file mode 100644 index 00000000000..080d868c88e --- /dev/null +++ b/fastlane/metadata/android/de-DE/changelogs/40106050.txt @@ -0,0 +1,2 @@ +Die wichtigsten Änderungen in dieser Version: Fehlerbehebungen. +Vollständiges Änderungsprotokoll: https://github.com/vector-im/element-android/releases From 6379420401aea69933e912ebc97a2b66041c7ea1 Mon Sep 17 00:00:00 2001 From: Danial Behzadi Date: Tue, 22 Aug 2023 17:15:40 +0000 Subject: [PATCH 31/66] Translated using Weblate (Persian) Currently translated at 100.0% (2640 of 2640 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/fa/ --- library/ui-strings/src/main/res/values-fa/strings.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/ui-strings/src/main/res/values-fa/strings.xml b/library/ui-strings/src/main/res/values-fa/strings.xml index fb5fd92f6bb..4be2e46ce79 100644 --- a/library/ui-strings/src/main/res/values-fa/strings.xml +++ b/library/ui-strings/src/main/res/values-fa/strings.xml @@ -2958,4 +2958,12 @@ کاره به‌روز شد خروج به هر صورت نمی‌توان به کارساز خانگی رسید. اگر همچنان خارج شوید این افزاره از سیاههٔ افزاره‌هایتان پاک نخواهد شد و باید از کارخواهس دیگر برش دارید. + ناتوان در یافتن نمایه‌ها برای شناسه‌های ماتریکس سیاهه شده. می‌خواهید به هر حال دعوتشان کنید؟ +\n +\n%s + ناتوان در یافتن نمایه‌ها برای شناسه‌های ماتریکس سیاهه شده. می‌خواهید به هر حال گپی بیاغازید؟ +\n +\n%s + آغاز گپ به هر حال + دعوت به هر حال \ No newline at end of file From ce5d42d48422ab7770d209f19dc1426c860f0440 Mon Sep 17 00:00:00 2001 From: Danial Behzadi Date: Tue, 22 Aug 2023 17:13:42 +0000 Subject: [PATCH 32/66] Translated using Weblate (Persian) Currently translated at 100.0% (102 of 102 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/fa/ --- fastlane/metadata/android/fa/changelogs/40106030.txt | 2 ++ fastlane/metadata/android/fa/changelogs/40106050.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/fa/changelogs/40106030.txt create mode 100644 fastlane/metadata/android/fa/changelogs/40106050.txt diff --git a/fastlane/metadata/android/fa/changelogs/40106030.txt b/fastlane/metadata/android/fa/changelogs/40106030.txt new file mode 100644 index 00000000000..1482b03042c --- /dev/null +++ b/fastlane/metadata/android/fa/changelogs/40106030.txt @@ -0,0 +1,2 @@ +تغییرات عمده در این نگارش: المنت اندروید اکنون از SDK راست Crypto استفاده می‌کند. +گزارش دگرگونی کامل: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/fa/changelogs/40106050.txt b/fastlane/metadata/android/fa/changelogs/40106050.txt new file mode 100644 index 00000000000..fb965624ac9 --- /dev/null +++ b/fastlane/metadata/android/fa/changelogs/40106050.txt @@ -0,0 +1,2 @@ +تغغیرات عمده در این نگارش: ارائه تصحیحی. +گزارش دگرگونی کامل: https://github.com/vector-im/element-android/releases From 1eee5c1de740bd6779269a3b2b44e83e7325dcad Mon Sep 17 00:00:00 2001 From: waclaw66 Date: Tue, 22 Aug 2023 18:00:31 +0000 Subject: [PATCH 33/66] Translated using Weblate (Czech) Currently translated at 100.0% (102 of 102 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/cs/ --- fastlane/metadata/android/cs-CZ/changelogs/40106030.txt | 2 ++ fastlane/metadata/android/cs-CZ/changelogs/40106050.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/cs-CZ/changelogs/40106030.txt create mode 100644 fastlane/metadata/android/cs-CZ/changelogs/40106050.txt diff --git a/fastlane/metadata/android/cs-CZ/changelogs/40106030.txt b/fastlane/metadata/android/cs-CZ/changelogs/40106030.txt new file mode 100644 index 00000000000..797d2af0ae7 --- /dev/null +++ b/fastlane/metadata/android/cs-CZ/changelogs/40106030.txt @@ -0,0 +1,2 @@ +Hlavní změny v této verzi: Element Android nyní používá Crypto Rust SDK. +Úplný seznam změn: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/cs-CZ/changelogs/40106050.txt b/fastlane/metadata/android/cs-CZ/changelogs/40106050.txt new file mode 100644 index 00000000000..786038aceb7 --- /dev/null +++ b/fastlane/metadata/android/cs-CZ/changelogs/40106050.txt @@ -0,0 +1,2 @@ +Hlavní změny v této verzi: opravné vydání. +Úplný seznam změn: https://github.com/vector-im/element-android/releases From de688aa93b24a8aefe382896ea719b4156340448 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 22 Aug 2023 12:11:58 -0600 Subject: [PATCH 34/66] Fix SAS strings import URL See https://github.com/vector-im/element-android/issues/8525 --- tools/import_sas_strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/import_sas_strings.py b/tools/import_sas_strings.py index faf4ed7080c..cd642fd0d19 100755 --- a/tools/import_sas_strings.py +++ b/tools/import_sas_strings.py @@ -35,7 +35,7 @@ print("Argument:") print(args) -base_url = "https://raw.githubusercontent.com/matrix-org/matrix-doc/master/data-definitions/sas-emoji.json" +base_url = "https://raw.githubusercontent.com/matrix-org/matrix-spec/main/data-definitions/sas-emoji.json" print("Downloading " + base_url + "…") From 6e6478a949e1388ff9caf21cd01ad5493af5009d Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 22 Aug 2023 12:14:36 -0600 Subject: [PATCH 35/66] add changelog --- changelog.d/8623.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/8623.misc diff --git a/changelog.d/8623.misc b/changelog.d/8623.misc new file mode 100644 index 00000000000..d9c70067029 --- /dev/null +++ b/changelog.d/8623.misc @@ -0,0 +1 @@ +Fix import of SAS Emoji string translations. \ No newline at end of file From df97229b9c32f7257225ea86d380a5bef7b1da84 Mon Sep 17 00:00:00 2001 From: Jozef Gaal Date: Tue, 22 Aug 2023 19:54:26 +0000 Subject: [PATCH 36/66] Translated using Weblate (Slovak) Currently translated at 100.0% (102 of 102 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/sk/ --- fastlane/metadata/android/sk/changelogs/40106030.txt | 2 ++ fastlane/metadata/android/sk/changelogs/40106050.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/sk/changelogs/40106030.txt create mode 100644 fastlane/metadata/android/sk/changelogs/40106050.txt diff --git a/fastlane/metadata/android/sk/changelogs/40106030.txt b/fastlane/metadata/android/sk/changelogs/40106030.txt new file mode 100644 index 00000000000..bb76d77ad5b --- /dev/null +++ b/fastlane/metadata/android/sk/changelogs/40106030.txt @@ -0,0 +1,2 @@ +Hlavné zmeny v tejto verzii: Element Android teraz používa Crypto Rust SDK. +Úplný zoznam zmien: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/sk/changelogs/40106050.txt b/fastlane/metadata/android/sk/changelogs/40106050.txt new file mode 100644 index 00000000000..1131453ad12 --- /dev/null +++ b/fastlane/metadata/android/sk/changelogs/40106050.txt @@ -0,0 +1,2 @@ +Hlavné zmeny v tejto verzii: opravné vydanie. +Úplný zoznam zmien: https://github.com/vector-im/element-android/releases From 494e824a855037c4a0ccbcaa692afec8db1e364d Mon Sep 17 00:00:00 2001 From: Ihor Hordiichuk Date: Tue, 22 Aug 2023 21:32:26 +0000 Subject: [PATCH 37/66] Translated using Weblate (Ukrainian) Currently translated at 100.0% (102 of 102 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/uk/ --- fastlane/metadata/android/uk/changelogs/40106030.txt | 2 ++ fastlane/metadata/android/uk/changelogs/40106050.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/uk/changelogs/40106030.txt create mode 100644 fastlane/metadata/android/uk/changelogs/40106050.txt diff --git a/fastlane/metadata/android/uk/changelogs/40106030.txt b/fastlane/metadata/android/uk/changelogs/40106030.txt new file mode 100644 index 00000000000..dff9f740b93 --- /dev/null +++ b/fastlane/metadata/android/uk/changelogs/40106030.txt @@ -0,0 +1,2 @@ +Основні зміни в цій версії: Element для Android відтепер використовує Crypto Rust SDK. +Список усіх змін: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/uk/changelogs/40106050.txt b/fastlane/metadata/android/uk/changelogs/40106050.txt new file mode 100644 index 00000000000..9499991d271 --- /dev/null +++ b/fastlane/metadata/android/uk/changelogs/40106050.txt @@ -0,0 +1,2 @@ +Основні зміни в цій версії: коригувальний випуск. +Список усіх змін: https://github.com/vector-im/element-android/releases From 003a134f681cb77ea077b5196a2f35ba8f24d125 Mon Sep 17 00:00:00 2001 From: Jeff Huang Date: Wed, 23 Aug 2023 02:21:19 +0000 Subject: [PATCH 38/66] Translated using Weblate (Chinese (Traditional)) Currently translated at 100.0% (102 of 102 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/zh_Hant/ --- fastlane/metadata/android/zh-TW/changelogs/40106030.txt | 2 ++ fastlane/metadata/android/zh-TW/changelogs/40106050.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/zh-TW/changelogs/40106030.txt create mode 100644 fastlane/metadata/android/zh-TW/changelogs/40106050.txt diff --git a/fastlane/metadata/android/zh-TW/changelogs/40106030.txt b/fastlane/metadata/android/zh-TW/changelogs/40106030.txt new file mode 100644 index 00000000000..568991bf5b5 --- /dev/null +++ b/fastlane/metadata/android/zh-TW/changelogs/40106030.txt @@ -0,0 +1,2 @@ +此版本的主要變更:現在起,Element Android 使用 Crypto Rust SDK。 +完整的變更紀錄:https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/zh-TW/changelogs/40106050.txt b/fastlane/metadata/android/zh-TW/changelogs/40106050.txt new file mode 100644 index 00000000000..77dbdb256ca --- /dev/null +++ b/fastlane/metadata/android/zh-TW/changelogs/40106050.txt @@ -0,0 +1,2 @@ +此版本中的主要變動:版本修正。 +完整的變更紀錄:https://github.com/vector-im/element-android/releases From e6a18a22410629ac5c416044a8907421912a037a Mon Sep 17 00:00:00 2001 From: Linerly Date: Wed, 23 Aug 2023 05:24:53 +0000 Subject: [PATCH 39/66] Translated using Weblate (Indonesian) Currently translated at 100.0% (102 of 102 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/id/ --- fastlane/metadata/android/id/changelogs/40106030.txt | 2 ++ fastlane/metadata/android/id/changelogs/40106050.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/id/changelogs/40106030.txt create mode 100644 fastlane/metadata/android/id/changelogs/40106050.txt diff --git a/fastlane/metadata/android/id/changelogs/40106030.txt b/fastlane/metadata/android/id/changelogs/40106030.txt new file mode 100644 index 00000000000..b69e7fc7b99 --- /dev/null +++ b/fastlane/metadata/android/id/changelogs/40106030.txt @@ -0,0 +1,2 @@ +Perubahan utama dalam versi ini: Element Android sekarang menggunakan SDK Kripto Rust. +Catatan perubahan lanjutan: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/id/changelogs/40106050.txt b/fastlane/metadata/android/id/changelogs/40106050.txt new file mode 100644 index 00000000000..ab716d6f456 --- /dev/null +++ b/fastlane/metadata/android/id/changelogs/40106050.txt @@ -0,0 +1,2 @@ +Perubahan utama dalam versi ini: rilis perbaikan. +Catatan perubahan lanjutan: https://github.com/vector-im/element-android/releases From 52aa4bb0d89e1ce679981ae2bf9ac64dedc84cf5 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 23 Aug 2023 07:15:06 +0000 Subject: [PATCH 40/66] Translated using Weblate (Turkish) Currently translated at 58.6% (1546 of 2636 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/tr/ --- library/ui-strings/src/main/res/values-tr/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ui-strings/src/main/res/values-tr/strings.xml b/library/ui-strings/src/main/res/values-tr/strings.xml index 84dbd44c285..470bd989354 100644 --- a/library/ui-strings/src/main/res/values-tr/strings.xml +++ b/library/ui-strings/src/main/res/values-tr/strings.xml @@ -1755,7 +1755,7 @@ %1$d seçildi %1$s görünen adını %2$s olarak değiştirdi - Ana sunucuya ulaşılamıyor. Yine de çıkış yaparsanız, bu cihaz cihaz listenizden silinmez, başka bir istemci kullanarak kaldırmak isteyebilirsiniz. + Ana sunucuya ulaşılamıyor. Yine de çıkış yaparsanız, bu cihaz, cihaz listenizden silinmez, başka bir istemci kullanarak kaldırmak isteyebilirsiniz. %d sunucu ACL\'si değişti %d sunucu ACL değişikliği From 81f7517560a655f8f40cf5d254b23b906e43ebfa Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 23 Aug 2023 09:20:04 +0200 Subject: [PATCH 41/66] Be able to trigger manually this workflow. --- .github/workflows/sync-from-external-sources.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-from-external-sources.yml b/.github/workflows/sync-from-external-sources.yml index 489ed1646e1..ddb182f3067 100644 --- a/.github/workflows/sync-from-external-sources.yml +++ b/.github/workflows/sync-from-external-sources.yml @@ -1,5 +1,6 @@ name: Sync Data From External Sources on: + workflow_dispatch: schedule: # At 00:00 on every Monday UTC - cron: '0 0 * * 1' @@ -80,4 +81,4 @@ jobs: *Note*: Change are coming from [this project](https://github.com/matrix-org/matrix-analytics-events) branch: sync-analytics-plan - base: develop \ No newline at end of file + base: develop From e6bd57d88cffe069a8eba8ba3d7e9b65ff4a403b Mon Sep 17 00:00:00 2001 From: bmarty Date: Wed, 23 Aug 2023 07:21:22 +0000 Subject: [PATCH 42/66] Sync SAS Strings --- .../src/main/res/values-ar/strings_sas.xml | 8 +-- .../src/main/res/values-cs/strings_sas.xml | 2 +- .../src/main/res/values-es/strings_sas.xml | 2 +- .../src/main/res/values-fa/strings_sas.xml | 68 +++++++++++++++++++ .../src/main/res/values-id/strings_sas.xml | 68 +++++++++++++++++++ .../src/main/res/values-ja/strings_sas.xml | 4 +- .../src/main/res/values-pt/strings_sas.xml | 68 +++++++++++++++++++ .../src/main/res/values-sk/strings_sas.xml | 52 +++++++------- .../src/main/res/values-sq/strings_sas.xml | 67 ++++++++++++++++++ .../src/main/res/values-vi/strings_sas.xml | 68 +++++++++++++++++++ .../main/res/values-zh-rHant/strings_sas.xml | 68 +++++++++++++++++++ 11 files changed, 441 insertions(+), 34 deletions(-) create mode 100644 matrix-sdk-android/src/main/res/values-fa/strings_sas.xml create mode 100644 matrix-sdk-android/src/main/res/values-id/strings_sas.xml create mode 100644 matrix-sdk-android/src/main/res/values-pt/strings_sas.xml create mode 100644 matrix-sdk-android/src/main/res/values-sq/strings_sas.xml create mode 100644 matrix-sdk-android/src/main/res/values-vi/strings_sas.xml create mode 100644 matrix-sdk-android/src/main/res/values-zh-rHant/strings_sas.xml diff --git a/matrix-sdk-android/src/main/res/values-ar/strings_sas.xml b/matrix-sdk-android/src/main/res/values-ar/strings_sas.xml index 423a8332bfd..7e09da17797 100644 --- a/matrix-sdk-android/src/main/res/values-ar/strings_sas.xml +++ b/matrix-sdk-android/src/main/res/values-ar/strings_sas.xml @@ -1,19 +1,19 @@ - كَلب + كلب هِرَّة أَسَد حِصَان - حِصَانٌ بِقَرن + حصان وحيد القرن خِنزِير فِيل أَرنَب باندَا دِيك - بِطريق + بطريق سُلحفاة - سَمَكَة + سَمَكة أُخطُبُوط فَرَاشَة زَهرَة diff --git a/matrix-sdk-android/src/main/res/values-cs/strings_sas.xml b/matrix-sdk-android/src/main/res/values-cs/strings_sas.xml index 1ef9d56f609..1c63273e7a5 100644 --- a/matrix-sdk-android/src/main/res/values-cs/strings_sas.xml +++ b/matrix-sdk-android/src/main/res/values-cs/strings_sas.xml @@ -48,7 +48,7 @@ Sponka Nůžky Zámek - Klíč + Klíč ke dveřím Kladivo Telefon Vlajka diff --git a/matrix-sdk-android/src/main/res/values-es/strings_sas.xml b/matrix-sdk-android/src/main/res/values-es/strings_sas.xml index b5f062cb628..04ef234d98b 100644 --- a/matrix-sdk-android/src/main/res/values-es/strings_sas.xml +++ b/matrix-sdk-android/src/main/res/values-es/strings_sas.xml @@ -50,7 +50,7 @@ Candado Llave Martillo - Telefono + Teléfono Bandera Tren Bicicleta diff --git a/matrix-sdk-android/src/main/res/values-fa/strings_sas.xml b/matrix-sdk-android/src/main/res/values-fa/strings_sas.xml new file mode 100644 index 00000000000..d1c5e96c472 --- /dev/null +++ b/matrix-sdk-android/src/main/res/values-fa/strings_sas.xml @@ -0,0 +1,68 @@ + + + + سگ + گربه + شیر + اسب + تک شاخ + خوک + فیل + خرگوش + پاندا + خروس + پنگوئن + لاک‌پشت + ماهی + اختاپوس + پروانه + گل + درخت + کاکتوس + قارچ + زمین + ماه + ابر + آتش + موز + سیب + توت فرنگی + ذرت + پیتزا + کیک + قلب + خنده + ربات + کلاه + عینک + آچار + بابا نوئل + لایک + چتر + ساعت شنی + ساعت + هدیه + لامپ + کتاب + مداد + گیره کاغذ + قیچی + قفل + کلید + چکش + تلفن + پرچم + قطار + دوچرخه + هواپیما + موشک + جام + توپ + گیتار + شیپور + زنگ + لنگر + هدفون + پوشه + سنجاق + diff --git a/matrix-sdk-android/src/main/res/values-id/strings_sas.xml b/matrix-sdk-android/src/main/res/values-id/strings_sas.xml new file mode 100644 index 00000000000..73270815e75 --- /dev/null +++ b/matrix-sdk-android/src/main/res/values-id/strings_sas.xml @@ -0,0 +1,68 @@ + + + + Anjing + Kucing + Singa + Kuda + Unicorn + Babi + Gajah + Kelinci + Panda + Ayam + Penguin + Kura-Kura + Ikan + Gurita + Kupu-Kupu + Bunga + Pohon + Kaktus + Jamur + Bola Dunia + Bulan + Awan + Api + Pisang + Apel + Stroberi + Jagung + Pizza + Kue + Hati + Senyuman + Robot + Topi + Kacamata + Kunci Bengkel + Santa + Jempol + Payung + Jam Pasir + Jam + Kado + Bohlam Lampu + Buku + Pensil + Klip Kertas + Gunting + Gembok + Kunci + Palu + Telepon + Bendera + Kereta Api + Sepeda + Pesawat + Roket + Piala + Bola + Gitar + Terompet + Lonceng + Jangkar + Headphone + Map + Pin + diff --git a/matrix-sdk-android/src/main/res/values-ja/strings_sas.xml b/matrix-sdk-android/src/main/res/values-ja/strings_sas.xml index 12f90e316d6..562577bef52 100644 --- a/matrix-sdk-android/src/main/res/values-ja/strings_sas.xml +++ b/matrix-sdk-android/src/main/res/values-ja/strings_sas.xml @@ -32,7 +32,7 @@ ケーキ ハート スマイル - ロボと + ロボット 帽子 めがね スパナ @@ -63,6 +63,6 @@ ベル いかり ヘッドホン - フォルダ + フォルダー ピン diff --git a/matrix-sdk-android/src/main/res/values-pt/strings_sas.xml b/matrix-sdk-android/src/main/res/values-pt/strings_sas.xml new file mode 100644 index 00000000000..d3108551cc7 --- /dev/null +++ b/matrix-sdk-android/src/main/res/values-pt/strings_sas.xml @@ -0,0 +1,68 @@ + + + + Cão + Gato + Leão + Cavalo + Unicórnio + Porco + Elefante + Coelho + Panda + Galo + Pinguim + Tartaruga + Peixe + Polvo + Borboleta + Flor + Árvore + Cato + Cogumelo + Globo + Lua + Nuvem + Fogo + Banana + Maçã + Morango + Milho + Piza + Bolo + Coração + Sorriso + Robô + Chapéu + Óculos + Chave inglesa + Pai Natal + Polegar para cima + Guarda-chuva + Ampulheta + Relógio + Presente + Lâmpada + Livro + Lápis + Clipe + Tesoura + Cadeado + Chave + Martelo + Telefone + Bandeira + Comboio + Bicicleta + Avião + Foguetão + Troféu + Bola + Guitarra + Trompete + Sino + Âncora + Fones + Pasta + Pionés + diff --git a/matrix-sdk-android/src/main/res/values-sk/strings_sas.xml b/matrix-sdk-android/src/main/res/values-sk/strings_sas.xml index 72fd9cc2a39..ea9af66443b 100644 --- a/matrix-sdk-android/src/main/res/values-sk/strings_sas.xml +++ b/matrix-sdk-android/src/main/res/values-sk/strings_sas.xml @@ -1,66 +1,66 @@ - Hlava psa - Hlava mačky - Hlava leva + Pes + Mačka + Lev Kôň - Hlava jednorožca - Hlava prasaťa + Jednorožec + Prasa Slon - Hlava zajaca - Hlava pandy + Zajac + Panda Kohút Tučniak Korytnačka Ryba Chobotnica Motýľ - Tulipán - Listnatý strom + Kvet + Strom Kaktus Huba Zemeguľa - Polmesiac + Mesiac Oblak Oheň Banán - Červené jablko + Jablko Jahoda - Kukuričný klas + Kukurica Pizza - Narodeninová torta - červené srdce - Škeriaca sa tvár + Torta + Srdce + Smajlík Robot - Cilinder + Klobúk Okuliare - Francúzsky kľúč - Santa Claus + Vidlicový kľúč + Mikuláš Palec nahor Dáždnik Presýpacie hodiny Budík - Zabalený darček + Darček Žiarovka - Zatvorená kniha + Kniha Ceruzka - Sponka na papier + Kancelárska sponka Nožnice - Zatvorená zámka + Zámka Kľúč Kladivo Telefón - Kockovaná zástava - Rušeň + Zástava + Vlak Bicykel Lietadlo Raketa Trofej - Futbal + Lopta Gitara Trúbka - Zvon + Zvonec Kotva Slúchadlá Fascikel diff --git a/matrix-sdk-android/src/main/res/values-sq/strings_sas.xml b/matrix-sdk-android/src/main/res/values-sq/strings_sas.xml new file mode 100644 index 00000000000..309cec8c9e4 --- /dev/null +++ b/matrix-sdk-android/src/main/res/values-sq/strings_sas.xml @@ -0,0 +1,67 @@ + + + + Qen + Mace + Luan + Kalë + Njëbrirësh + Derr + Elefant + Lepur + Panda + Këndes + Pinguin + Breshkë + Peshk + Oktapod + Flutur + Lule + Pemë + Kaktus + Kërpudhë + Rruzull + Hënë + Re + Zjarr + Banane + Mollë + Luleshtrydhe + Misër + Picë + Tortë + Zemër + Emotikon + Robot + Kapë + Syze + Çelës + Babagjyshi i Vitit të Ri + Ombrellë + Klepsidër + Sahat + Dhuratë + Llambë + Libër + Laps + Kapëse + Gërshërë + Dry + Çelës + Çekiç + Telefon + Flamur + Tren + Biçikletë + Avion + Raketë + Trofe + Top + Kitarë + Trombë + Kambanë + Spirancë + Kufje + Dosje + Karficë + diff --git a/matrix-sdk-android/src/main/res/values-vi/strings_sas.xml b/matrix-sdk-android/src/main/res/values-vi/strings_sas.xml new file mode 100644 index 00000000000..8ad1a461211 --- /dev/null +++ b/matrix-sdk-android/src/main/res/values-vi/strings_sas.xml @@ -0,0 +1,68 @@ + + + + Chó + Mèo + Sư tử + Ngựa + Kỳ lân + Heo + Voi + Thỏ + Gấu trúc + Gà trống + Chim cánh cụt + Rùa + + Bạch tuộc + Bướm + Hoa + Cây + Xương rồng + Nấm + Địa cầu + Mặt trăng + Mây + Lửa + Chuối + Táo + Dâu tây + Bắp + Pizza + Bánh + Tim + Mặt cười + Rô-bô + + Kính mắt + Cờ-lê + ông già Nô-en + Thích + Cái ô + Đồng hồ cát + Đồng hồ + Quà tặng + Bóng đèn tròn + Sách + Viết chì + Kẹp giấy + Cái kéo + Ổ khóa + Chìa khóa + Búa + Điện thoại + Lá cờ + Xe lửa + Xe đạp + Máy bay + Tên lửa + Cúp + Banh + Ghi-ta + Kèn + Chuông + Mỏ neo + Tai nghe + Thư mục + Ghim + diff --git a/matrix-sdk-android/src/main/res/values-zh-rHant/strings_sas.xml b/matrix-sdk-android/src/main/res/values-zh-rHant/strings_sas.xml new file mode 100644 index 00000000000..fa4e49776b9 --- /dev/null +++ b/matrix-sdk-android/src/main/res/values-zh-rHant/strings_sas.xml @@ -0,0 +1,68 @@ + + + + + + 獅子 + + 獨角獸 + + 大象 + 兔子 + 熊貓 + 公雞 + 企鵝 + 烏龜 + + 章魚 + 蝴蝶 + + + 仙人掌 + 蘑菇 + 地球 + 月亮 + 雲朵 + + 香蕉 + 蘋果 + 草莓 + 玉米 + 披薩 + 蛋糕 + 愛心 + 笑臉 + 機器人 + 帽子 + 眼鏡 + 扳手 + 聖誕老人 + + 雨傘 + 沙漏 + 時鐘 + 禮物 + 燈泡 + + 鉛筆 + 迴紋針 + 剪刀 + 鎖頭 + 鑰匙 + 鎚子 + 電話 + 旗幟 + 火車 + 腳踏車 + 飛機 + 火箭 + 獎盃 + 足球 + 吉他 + 喇叭 + 鈴鐺 + 船錨 + 耳機 + 資料夾 + 圖釘 + From e2c7833f9340616e26e7dfba98afb5e2f5f992e5 Mon Sep 17 00:00:00 2001 From: Besnik Bleta Date: Wed, 23 Aug 2023 09:13:15 +0000 Subject: [PATCH 43/66] Translated using Weblate (Albanian) Currently translated at 99.4% (2626 of 2640 strings) Translation: Element Android/Element Android App Translate-URL: https://translate.element.io/projects/element-android/element-app/sq/ --- library/ui-strings/src/main/res/values-sq/strings.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/library/ui-strings/src/main/res/values-sq/strings.xml b/library/ui-strings/src/main/res/values-sq/strings.xml index f79d4184533..171da1d9d9c 100644 --- a/library/ui-strings/src/main/res/values-sq/strings.xml +++ b/library/ui-strings/src/main/res/values-sq/strings.xml @@ -2945,4 +2945,13 @@ Aplikacioni u përditësua Dil, sido qoftë S’kapet dot shërbyesi Home. Nëse keni dalë, sido qoftë, kjo pajisje s’do të fshihet te lista e pajisjeve tuaja, mund të doni ta hiqni duke përdorur klient tjetër. + S’arrihet të gjenden profile për ID-rat Matrix të radhitura më poshtë. Do të donit të fillohej një fjalosje, sido që të jetë\? +\n +\n%s + Aktivizo ndarje të drejtpërdrejtë me të tjerët + Fillo fjalosje, sido që të jetë + S’arrihet të gjenden profile për ID-rat Matrix të radhitura më poshtë. Do të donit të ftohen, sido qoftë\? +\n +\n%s + Ftoji, sido qoftë \ No newline at end of file From b5c224f3e0cd2f867fd9b81549deead52749fb4c Mon Sep 17 00:00:00 2001 From: Besnik Bleta Date: Wed, 23 Aug 2023 09:11:33 +0000 Subject: [PATCH 44/66] Translated using Weblate (Albanian) Currently translated at 100.0% (102 of 102 strings) Translation: Element Android/Element Android Store Translate-URL: https://translate.element.io/projects/element-android/element-store/sq/ --- fastlane/metadata/android/sq/changelogs/40106030.txt | 2 ++ fastlane/metadata/android/sq/changelogs/40106050.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 fastlane/metadata/android/sq/changelogs/40106030.txt create mode 100644 fastlane/metadata/android/sq/changelogs/40106050.txt diff --git a/fastlane/metadata/android/sq/changelogs/40106030.txt b/fastlane/metadata/android/sq/changelogs/40106030.txt new file mode 100644 index 00000000000..862a7c93413 --- /dev/null +++ b/fastlane/metadata/android/sq/changelogs/40106030.txt @@ -0,0 +1,2 @@ +Ndryshime në këtë version: Element Android tanimë përdor Crypto Rust SDK. +Regjistër i plotë ndryshimesh: https://github.com/vector-im/element-android/releases diff --git a/fastlane/metadata/android/sq/changelogs/40106050.txt b/fastlane/metadata/android/sq/changelogs/40106050.txt new file mode 100644 index 00000000000..cc67e3d0753 --- /dev/null +++ b/fastlane/metadata/android/sq/changelogs/40106050.txt @@ -0,0 +1,2 @@ +Ndryshimet kryesore në këtë version: hedhje në qarkullim me ndreqje të ndryshme. +Regjistër i plotë ndryshimesh: https://github.com/vector-im/element-android/releases From 0a6dbeb3fe757e730d9f1e1519d6a63f78236204 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 23 Aug 2023 16:51:31 +0200 Subject: [PATCH 45/66] Remove unsupported language. We may handle that during the next SAS string update. --- .../main/res/values-zh-rHant/strings_sas.xml | 68 ------------------- 1 file changed, 68 deletions(-) delete mode 100644 matrix-sdk-android/src/main/res/values-zh-rHant/strings_sas.xml diff --git a/matrix-sdk-android/src/main/res/values-zh-rHant/strings_sas.xml b/matrix-sdk-android/src/main/res/values-zh-rHant/strings_sas.xml deleted file mode 100644 index fa4e49776b9..00000000000 --- a/matrix-sdk-android/src/main/res/values-zh-rHant/strings_sas.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - 獅子 - - 獨角獸 - - 大象 - 兔子 - 熊貓 - 公雞 - 企鵝 - 烏龜 - - 章魚 - 蝴蝶 - - - 仙人掌 - 蘑菇 - 地球 - 月亮 - 雲朵 - - 香蕉 - 蘋果 - 草莓 - 玉米 - 披薩 - 蛋糕 - 愛心 - 笑臉 - 機器人 - 帽子 - 眼鏡 - 扳手 - 聖誕老人 - - 雨傘 - 沙漏 - 時鐘 - 禮物 - 燈泡 - - 鉛筆 - 迴紋針 - 剪刀 - 鎖頭 - 鑰匙 - 鎚子 - 電話 - 旗幟 - 火車 - 腳踏車 - 飛機 - 火箭 - 獎盃 - 足球 - 吉他 - 喇叭 - 鈴鐺 - 船錨 - 耳機 - 資料夾 - 圖釘 - From 751bd27c9d4bcb4c82c0116229ac91493eff8682 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Aug 2023 23:02:56 +0000 Subject: [PATCH 46/66] Bump org.matrix.rustcomponents:crypto-android from 0.3.10 to 0.3.14 Bumps [org.matrix.rustcomponents:crypto-android](https://github.com/matrix-org/matrix-rust-components-kotlin) from 0.3.10 to 0.3.14. - [Release notes](https://github.com/matrix-org/matrix-rust-components-kotlin/releases) - [Commits](https://github.com/matrix-org/matrix-rust-components-kotlin/compare/crypto-v0.3.10...crypto-v0.3.14) --- updated-dependencies: - dependency-name: org.matrix.rustcomponents:crypto-android dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- matrix-sdk-android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/build.gradle b/matrix-sdk-android/build.gradle index 72719bb6d72..c7183b83658 100644 --- a/matrix-sdk-android/build.gradle +++ b/matrix-sdk-android/build.gradle @@ -216,7 +216,7 @@ dependencies { implementation libs.google.phonenumber - rustCryptoImplementation("org.matrix.rustcomponents:crypto-android:0.3.10") + rustCryptoImplementation("org.matrix.rustcomponents:crypto-android:0.3.14") // rustCryptoApi project(":library:rustCrypto") testImplementation libs.tests.junit From 0838a10b650721d3fff14d1c9903d3a9deaeebeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Mon, 28 Aug 2023 15:34:52 +0200 Subject: [PATCH 47/66] Bump memory allocated for tests --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index edf07c097ad..dae89f7aff0 100644 --- a/build.gradle +++ b/build.gradle @@ -331,6 +331,10 @@ ext.initScreenshotTests = { project -> } } +tasks.withType(Test) { + maxHeapSize = "2g" +} + // Workaround to have KSP generated Kotlin code available in the IDE (for code completion) // Ref: https://github.com/airbnb/epoxy/releases/tag/5.0.0beta02 subprojects { project -> From dc8230e435a857ba1b58f7cece233bb63bec94d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Mon, 28 Aug 2023 15:35:20 +0200 Subject: [PATCH 48/66] Ignore `LocaleFolder` lint error since we won't fix it. --- tools/lint/lint.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lint/lint.xml b/tools/lint/lint.xml index dbe30f22678..467b32bacdb 100644 --- a/tools/lint/lint.xml +++ b/tools/lint/lint.xml @@ -17,7 +17,7 @@ - + From d65459cc59ee3b24dd3676351b5b13efc4870b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Mon, 28 Aug 2023 16:05:40 +0200 Subject: [PATCH 49/66] Try bumping the whole memory heap size in rust tests --- .github/workflows/tests-rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests-rust.yml b/.github/workflows/tests-rust.yml index 6713f29bafa..e60240fd45a 100644 --- a/.github/workflows/tests-rust.yml +++ b/.github/workflows/tests-rust.yml @@ -9,7 +9,7 @@ on: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false + GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx4g -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 4 --no-daemon jobs: From fe51ee3956a43c01a1ba94d9276f3fc027635da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Mon, 28 Aug 2023 17:17:41 +0200 Subject: [PATCH 50/66] Try bumping heap size of gradle and the kotlin daemon as a last resort --- .github/workflows/tests-rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests-rust.yml b/.github/workflows/tests-rust.yml index e60240fd45a..803b0a08ab3 100644 --- a/.github/workflows/tests-rust.yml +++ b/.github/workflows/tests-rust.yml @@ -9,7 +9,7 @@ on: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx4g -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false + GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx5g -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx3g" -Dkotlin.incremental=false CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 4 --no-daemon jobs: From a889d8d678990521d6941b15116492785c1bf78a Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 31 Aug 2023 09:57:47 +0200 Subject: [PATCH 51/66] Store the authentication issuer into DB. --- .../homeserver/HomeServerCapabilities.kt | 5 ++++ .../database/RealmSessionStoreMigration.kt | 4 ++- .../mapper/HomeServerCapabilitiesMapper.kt | 1 + .../database/migration/MigrateSessionTo053.kt | 30 +++++++++++++++++++ .../model/HomeServerCapabilitiesEntity.kt | 1 + .../GetHomeServerCapabilitiesTask.kt | 1 + 6 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/migration/MigrateSessionTo053.kt diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/homeserver/HomeServerCapabilities.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/homeserver/HomeServerCapabilities.kt index 78672adb00c..b7d4ea3cdcd 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/homeserver/HomeServerCapabilities.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/homeserver/HomeServerCapabilities.kt @@ -85,6 +85,11 @@ data class HomeServerCapabilities( * External account management url for use with MSC3824 delegated OIDC, provided in Wellknown. */ val externalAccountManagementUrl: String? = null, + + /** + * Authentication issuer for use with MSC3824 delegated OIDC, provided in Wellknown. + */ + val authenticationIssuer: String? = null, ) { enum class RoomCapabilitySupport { diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt index bca189134b9..4376323df47 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt @@ -69,6 +69,7 @@ import org.matrix.android.sdk.internal.database.migration.MigrateSessionTo049 import org.matrix.android.sdk.internal.database.migration.MigrateSessionTo050 import org.matrix.android.sdk.internal.database.migration.MigrateSessionTo051 import org.matrix.android.sdk.internal.database.migration.MigrateSessionTo052 +import org.matrix.android.sdk.internal.database.migration.MigrateSessionTo053 import org.matrix.android.sdk.internal.util.Normalizer import org.matrix.android.sdk.internal.util.database.MatrixRealmMigration import javax.inject.Inject @@ -77,7 +78,7 @@ internal class RealmSessionStoreMigration @Inject constructor( private val normalizer: Normalizer ) : MatrixRealmMigration( dbName = "Session", - schemaVersion = 52L, + schemaVersion = 53L, ) { /** * Forces all RealmSessionStoreMigration instances to be equal. @@ -139,5 +140,6 @@ internal class RealmSessionStoreMigration @Inject constructor( if (oldVersion < 50) MigrateSessionTo050(realm).perform() if (oldVersion < 51) MigrateSessionTo051(realm).perform() if (oldVersion < 52) MigrateSessionTo052(realm).perform() + if (oldVersion < 53) MigrateSessionTo053(realm).perform() } } diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/mapper/HomeServerCapabilitiesMapper.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/mapper/HomeServerCapabilitiesMapper.kt index b566cf7cb6f..f5cf88e2c1c 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/mapper/HomeServerCapabilitiesMapper.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/mapper/HomeServerCapabilitiesMapper.kt @@ -49,6 +49,7 @@ internal object HomeServerCapabilitiesMapper { canRemotelyTogglePushNotificationsOfDevices = entity.canRemotelyTogglePushNotificationsOfDevices, canRedactRelatedEvents = entity.canRedactEventWithRelations, externalAccountManagementUrl = entity.externalAccountManagementUrl, + authenticationIssuer = entity.authenticationIssuer, ) } diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/migration/MigrateSessionTo053.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/migration/MigrateSessionTo053.kt new file mode 100644 index 00000000000..32fac1ad4b4 --- /dev/null +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/migration/MigrateSessionTo053.kt @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2023 The Matrix.org Foundation C.I.C. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.matrix.android.sdk.internal.database.migration + +import io.realm.DynamicRealm +import org.matrix.android.sdk.internal.database.model.HomeServerCapabilitiesEntityFields +import org.matrix.android.sdk.internal.extensions.forceRefreshOfHomeServerCapabilities +import org.matrix.android.sdk.internal.util.database.RealmMigrator + +internal class MigrateSessionTo053(realm: DynamicRealm) : RealmMigrator(realm, 53) { + override fun doMigrate(realm: DynamicRealm) { + realm.schema.get("HomeServerCapabilitiesEntity") + ?.addField(HomeServerCapabilitiesEntityFields.AUTHENTICATION_ISSUER, String::class.java) + ?.forceRefreshOfHomeServerCapabilities() + } +} diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/model/HomeServerCapabilitiesEntity.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/model/HomeServerCapabilitiesEntity.kt index 35a5c654de8..79aaf6d4ceb 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/model/HomeServerCapabilitiesEntity.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/model/HomeServerCapabilitiesEntity.kt @@ -36,6 +36,7 @@ internal open class HomeServerCapabilitiesEntity( var canRemotelyTogglePushNotificationsOfDevices: Boolean = false, var canRedactEventWithRelations: Boolean = false, var externalAccountManagementUrl: String? = null, + var authenticationIssuer: String? = null, ) : RealmObject() { companion object diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/homeserver/GetHomeServerCapabilitiesTask.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/homeserver/GetHomeServerCapabilitiesTask.kt index 71f6ebd6e35..b973de9fd36 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/homeserver/GetHomeServerCapabilitiesTask.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/homeserver/GetHomeServerCapabilitiesTask.kt @@ -165,6 +165,7 @@ internal class DefaultGetHomeServerCapabilitiesTask @Inject constructor( Timber.v("Extracted integration config : $config") realm.insertOrUpdate(config) } + homeServerCapabilitiesEntity.authenticationIssuer = getWellknownResult.wellKnown.unstableDelegatedAuthConfig?.issuer homeServerCapabilitiesEntity.externalAccountManagementUrl = getWellknownResult.wellKnown.unstableDelegatedAuthConfig?.accountManagementUrl } From 52a06931f47d6f86d0e54fe1ff31859486c75e1d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 31 Aug 2023 15:51:18 +0200 Subject: [PATCH 52/66] Change the test to hide multi signout of devices. We do not need an external account management URL, which is optional, but we need to know if account management is delegate to Oidc. --- .../api/session/homeserver/HomeServerCapabilities.kt | 2 ++ .../features/settings/devices/v2/DevicesViewModel.kt | 10 ++++++---- .../features/settings/devices/v2/DevicesViewState.kt | 2 +- .../devices/v2/VectorSettingsDevicesFragment.kt | 8 ++++---- .../devices/v2/othersessions/OtherSessionsFragment.kt | 4 ++-- .../devices/v2/othersessions/OtherSessionsViewModel.kt | 10 ++++++---- .../devices/v2/othersessions/OtherSessionsViewState.kt | 2 +- 7 files changed, 22 insertions(+), 16 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/homeserver/HomeServerCapabilities.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/homeserver/HomeServerCapabilities.kt index b7d4ea3cdcd..6b94452e391 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/homeserver/HomeServerCapabilities.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/homeserver/HomeServerCapabilities.kt @@ -146,6 +146,8 @@ data class HomeServerCapabilities( return cap?.preferred ?: cap?.support?.lastOrNull() } + val delegatedOidcAuthEnabled: Boolean = authenticationIssuer != null + companion object { const val MAX_UPLOAD_FILE_SIZE_UNKNOWN = -1L const val ROOM_CAP_KNOCK = "knock" diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt index 369150d45ea..43530cb17c6 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewModel.kt @@ -35,6 +35,7 @@ import kotlinx.coroutines.flow.combine import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.launch +import org.matrix.android.sdk.api.extensions.orFalse import org.matrix.android.sdk.api.session.uia.DefaultBaseAuth import timber.log.Timber @@ -69,16 +70,17 @@ class DevicesViewModel @AssistedInject constructor( refreshDeviceList() refreshIpAddressVisibility() observePreferences() - initExternalAccountManagementUrl() + initDelegatedOidcAuthEnabled() } - private fun initExternalAccountManagementUrl() { + private fun initDelegatedOidcAuthEnabled() { setState { copy( - externalAccountManagementUrl = activeSessionHolder.getSafeActiveSession() + delegatedOidcAuthEnabled = activeSessionHolder.getSafeActiveSession() ?.homeServerCapabilitiesService() ?.getHomeServerCapabilities() - ?.externalAccountManagementUrl + ?.delegatedOidcAuthEnabled + .orFalse() ) } } diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewState.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewState.kt index 863ecd17a30..6d6baa9d5f3 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewState.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/DevicesViewState.kt @@ -26,7 +26,7 @@ data class DevicesViewState( val devices: Async = Uninitialized, val isLoading: Boolean = false, val isShowingIpAddress: Boolean = false, - val externalAccountManagementUrl: String? = null, + val delegatedOidcAuthEnabled: Boolean = false, ) : MavericksState data class DeviceFullInfoList( diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/VectorSettingsDevicesFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/VectorSettingsDevicesFragment.kt index 28500646098..bf90120b96a 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/VectorSettingsDevicesFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/VectorSettingsDevicesFragment.kt @@ -355,8 +355,8 @@ class VectorSettingsDevicesFragment : views.deviceListHeaderOtherSessions.isVisible = true val colorDestructive = colorProvider.getColorFromAttribute(R.attr.colorError) val multiSignoutItem = views.deviceListHeaderOtherSessions.menu.findItem(R.id.otherSessionsHeaderMultiSignout) - // Hide multi signout if we have an external account manager - multiSignoutItem.isVisible = state.externalAccountManagementUrl == null + // Hide multi signout if the homeserver delegates the account management + multiSignoutItem.isVisible = state.delegatedOidcAuthEnabled.not() val nbDevices = otherDevices.size multiSignoutItem.title = stringProvider.getQuantityString(R.plurals.device_manager_other_sessions_multi_signout_all, nbDevices, nbDevices) multiSignoutItem.setTextColor(colorDestructive) @@ -396,8 +396,8 @@ class VectorSettingsDevicesFragment : signoutSessionItem.setTextColor(colorDestructive) val signoutOtherSessionsItem = views.deviceListHeaderCurrentSession.menu.findItem(R.id.currentSessionHeaderSignoutOtherSessions) signoutOtherSessionsItem.setTextColor(colorDestructive) - // Hide signout other sessions if we have an external account manager - signoutOtherSessionsItem.isVisible = hasOtherDevices && state.externalAccountManagementUrl == null + // Hide signout other sessions if the homeserver delegates the account management + signoutOtherSessionsItem.isVisible = hasOtherDevices && state.delegatedOidcAuthEnabled.not() } private fun renderCurrentSessionListView(currentDeviceInfo: DeviceFullInfo) { diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt index f935cb83abf..a5897be58c6 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsFragment.kt @@ -103,8 +103,8 @@ class OtherSessionsFragment : val nbDevices = viewState.devices()?.size ?: 0 stringProvider.getQuantityString(R.plurals.device_manager_other_sessions_multi_signout_all, nbDevices, nbDevices) } - multiSignoutItem.isVisible = if (viewState.externalAccountManagementUrl != null) { - // Hide multi signout if we have an external account manager + multiSignoutItem.isVisible = if (viewState.delegatedOidcAuthEnabled) { + // Hide multi signout if the homeserver delegates the account management false } else { if (viewState.isSelectModeEnabled) { diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewModel.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewModel.kt index 3d41850027d..fd463a933ca 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewModel.kt @@ -36,6 +36,7 @@ import im.vector.app.features.settings.devices.v2.signout.SignoutSessionsReAuthN import im.vector.app.features.settings.devices.v2.signout.SignoutSessionsUseCase import kotlinx.coroutines.Job import kotlinx.coroutines.launch +import org.matrix.android.sdk.api.extensions.orFalse import org.matrix.android.sdk.api.session.uia.DefaultBaseAuth import timber.log.Timber @@ -65,16 +66,17 @@ class OtherSessionsViewModel @AssistedInject constructor( observeDevices(initialState.currentFilter) refreshIpAddressVisibility() observePreferences() - initExternalAccountManagementUrl() + initDelegatedOidcAuthEnabled() } - private fun initExternalAccountManagementUrl() { + private fun initDelegatedOidcAuthEnabled() { setState { copy( - externalAccountManagementUrl = activeSessionHolder.getSafeActiveSession() + delegatedOidcAuthEnabled = activeSessionHolder.getSafeActiveSession() ?.homeServerCapabilitiesService() ?.getHomeServerCapabilities() - ?.externalAccountManagementUrl + ?.delegatedOidcAuthEnabled + .orFalse() ) } } diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewState.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewState.kt index ccb3e57f41e..dcff6527687 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewState.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/othersessions/OtherSessionsViewState.kt @@ -29,7 +29,7 @@ data class OtherSessionsViewState( val isSelectModeEnabled: Boolean = false, val isLoading: Boolean = false, val isShowingIpAddress: Boolean = false, - val externalAccountManagementUrl: String? = null, + val delegatedOidcAuthEnabled: Boolean = false, ) : MavericksState { constructor(args: OtherSessionsArgs) : this(excludeCurrentDevice = args.excludeCurrentDevice) From d31c741f9d9bc55ef3e5f41994750fc0f12ca892 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 23 Aug 2023 16:46:23 +0200 Subject: [PATCH 53/66] Hide deactivate account section in case of account managed externally. --- changelog.d/8619.misc | 1 + .../app/features/settings/VectorSettingsGeneralFragment.kt | 6 ++++++ vector/src/main/res/xml/vector_settings_general.xml | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 changelog.d/8619.misc diff --git a/changelog.d/8619.misc b/changelog.d/8619.misc new file mode 100644 index 00000000000..73e24e1c557 --- /dev/null +++ b/changelog.d/8619.misc @@ -0,0 +1 @@ +Hide account deactivation UI for account managed externally. diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt b/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt index ac34764f5fe..2aaf8316551 100644 --- a/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt @@ -45,6 +45,7 @@ import im.vector.app.core.intent.getFilenameFromUri import im.vector.app.core.platform.SimpleTextWatcher import im.vector.app.core.preference.UserAvatarPreference import im.vector.app.core.preference.VectorPreference +import im.vector.app.core.preference.VectorPreferenceCategory import im.vector.app.core.preference.VectorSwitchPreference import im.vector.app.core.utils.TextUtils import im.vector.app.core.utils.getSizeOfFiles @@ -110,6 +111,9 @@ class VectorSettingsGeneralFragment : private val mExternalAccountManagementPreference by lazy { findPreference(VectorPreferences.SETTINGS_EXTERNAL_ACCOUNT_MANAGEMENT_KEY)!! } + private val mDeactivateAccountCategory by lazy { + findPreference("SETTINGS_DEACTIVATE_ACCOUNT_CATEGORY_KEY")!! + } // Local contacts private val mContactSettingsCategory by lazy { @@ -322,6 +326,8 @@ class VectorSettingsGeneralFragment : false } + // Account deactivation is visible only if account is not managed by an external URL. + mDeactivateAccountCategory.isVisible = homeServerCapabilities.delegatedOidcAuthEnabled.not() } private suspend fun getCacheSize(): Long = withContext(Dispatchers.IO) { diff --git a/vector/src/main/res/xml/vector_settings_general.xml b/vector/src/main/res/xml/vector_settings_general.xml index 8600dbc1bee..90c75f0e742 100644 --- a/vector/src/main/res/xml/vector_settings_general.xml +++ b/vector/src/main/res/xml/vector_settings_general.xml @@ -113,7 +113,9 @@ - + Date: Wed, 13 Sep 2023 10:43:03 +0000 Subject: [PATCH 54/66] Fix crash when max shortcuts count is exceeded (#8644) --- .github/workflows/build.yml | 2 +- .github/workflows/nightly.yml | 2 +- .github/workflows/nightly_er.yml | 2 +- changelog.d/8644.bugfix | 1 + .../app/features/home/ShortcutsHandler.kt | 24 +++++++++---------- .../VectorUncaughtExceptionHandler.kt | 8 ++++--- 6 files changed, 21 insertions(+), 18 deletions(-) create mode 100644 changelog.d/8644.bugfix diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b135aa5c9e4..80e09ffdeb0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: # Enrich gradle.properties for CI/CD env: - GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false + GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=1g" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon jobs: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1e05533da17..93d63af5d30 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -7,7 +7,7 @@ on: - cron: "0 4 * * *" env: - GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false + GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=1g" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon jobs: diff --git a/.github/workflows/nightly_er.yml b/.github/workflows/nightly_er.yml index e9981ad06a5..7efa900b062 100644 --- a/.github/workflows/nightly_er.yml +++ b/.github/workflows/nightly_er.yml @@ -6,7 +6,7 @@ on: - cron: "0 4 * * *" env: - GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false + GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3072m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=1g" -Dkotlin.daemon.jvm.options="-Xmx2560m" -Dkotlin.incremental=false CI_GRADLE_ARG_PROPERTIES: --stacktrace -PpreDexEnable=false --max-workers 2 --no-daemon jobs: diff --git a/changelog.d/8644.bugfix b/changelog.d/8644.bugfix new file mode 100644 index 00000000000..c9898370cb4 --- /dev/null +++ b/changelog.d/8644.bugfix @@ -0,0 +1 @@ +Fix crash when max shortcuts count is exceeded \ No newline at end of file diff --git a/vector/src/main/java/im/vector/app/features/home/ShortcutsHandler.kt b/vector/src/main/java/im/vector/app/features/home/ShortcutsHandler.kt index 3a72907467d..d83c65ad5e0 100644 --- a/vector/src/main/java/im/vector/app/features/home/ShortcutsHandler.kt +++ b/vector/src/main/java/im/vector/app/features/home/ShortcutsHandler.kt @@ -139,19 +139,19 @@ class ShortcutsHandler @Inject constructor( } private fun createShortcuts(rooms: List) { - if (hasPinCode.get()) { - // No shortcut in this case (privacy) - ShortcutManagerCompat.removeAllDynamicShortcuts(context) - } else { - val shortcuts = rooms - .take(maxShortcutCountPerActivity) - .mapIndexed { index, room -> - shortcutCreator.create(room, index) - } + ShortcutManagerCompat.removeAllDynamicShortcuts(context) - shortcuts.forEach { shortcut -> - ShortcutManagerCompat.pushDynamicShortcut(context, shortcut) - } + // No shortcut in this case (privacy) + if (hasPinCode.get()) return + + val shortcuts = rooms + .take(maxShortcutCountPerActivity) + .mapIndexed { index, room -> + shortcutCreator.create(room, index) + } + + shortcuts.forEach { shortcut -> + ShortcutManagerCompat.pushDynamicShortcut(context, shortcut) } } diff --git a/vector/src/main/java/im/vector/app/features/rageshake/VectorUncaughtExceptionHandler.kt b/vector/src/main/java/im/vector/app/features/rageshake/VectorUncaughtExceptionHandler.kt index d3174631e8e..6d6ecd9edc6 100644 --- a/vector/src/main/java/im/vector/app/features/rageshake/VectorUncaughtExceptionHandler.kt +++ b/vector/src/main/java/im/vector/app/features/rageshake/VectorUncaughtExceptionHandler.kt @@ -20,6 +20,7 @@ import android.content.SharedPreferences import android.os.Build import androidx.core.content.edit import im.vector.app.core.di.DefaultPreferences +import im.vector.app.core.resources.AppNameProvider import im.vector.app.core.resources.VersionCodeProvider import im.vector.app.features.version.VersionProvider import org.matrix.android.sdk.api.Matrix @@ -36,6 +37,7 @@ class VectorUncaughtExceptionHandler @Inject constructor( private val bugReporter: BugReporter, private val versionProvider: VersionProvider, private val versionCodeProvider: VersionCodeProvider, + private val appNameProvider: AppNameProvider, ) : Thread.UncaughtExceptionHandler { // key to save the crash status @@ -67,12 +69,12 @@ class VectorUncaughtExceptionHandler @Inject constructor( putBoolean(PREFS_CRASH_KEY, true) } val b = StringBuilder() - val appName = "Element" // TODO Matrix.getApplicationName() + val appName = appNameProvider.getAppName() - b.append(appName + " Build : " + versionCodeProvider.getVersionCode() + "\n") + b.append("$appName Build : ${versionCodeProvider.getVersionCode()}\n") b.append("$appName Version : ${versionProvider.getVersion(longFormat = true)}\n") b.append("SDK Version : ${Matrix.getSdkVersion()}\n") - b.append("Phone : " + Build.MODEL.trim() + " (" + Build.VERSION.INCREMENTAL + " " + Build.VERSION.RELEASE + " " + Build.VERSION.CODENAME + ")\n") + b.append("Phone : ${Build.MODEL.trim()} (${Build.VERSION.INCREMENTAL} ${Build.VERSION.RELEASE} ${Build.VERSION.CODENAME})\n") b.append("Memory statuses \n") From 470557c59ea7a11ebcd53f0d7034c35a927b260c Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Thu, 14 Sep 2023 11:23:19 +0100 Subject: [PATCH 55/66] Open OIDC account management URL in chrome tab Not the external browser --- .../app/features/settings/VectorSettingsGeneralFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt b/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt index ac34764f5fe..a004f7cd3d6 100644 --- a/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorSettingsGeneralFragment.kt @@ -48,7 +48,7 @@ import im.vector.app.core.preference.VectorPreference import im.vector.app.core.preference.VectorSwitchPreference import im.vector.app.core.utils.TextUtils import im.vector.app.core.utils.getSizeOfFiles -import im.vector.app.core.utils.openUrlInExternalBrowser +import im.vector.app.core.utils.openUrlInChromeCustomTab import im.vector.app.core.utils.toast import im.vector.app.databinding.DialogChangePasswordBinding import im.vector.app.features.MainActivity @@ -221,7 +221,7 @@ class VectorSettingsGeneralFragment : // Hide the preference if no URL is given by server if (homeServerCapabilities.externalAccountManagementUrl != null) { mExternalAccountManagementPreference.onPreferenceClickListener = Preference.OnPreferenceClickListener { - openUrlInExternalBrowser(it.context, homeServerCapabilities.externalAccountManagementUrl) + openUrlInChromeCustomTab(it.context, null, homeServerCapabilities.externalAccountManagementUrl!!) true } From 3f2f3860e142a32ce23ed1caa51cab0097b789aa Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Thu, 14 Sep 2023 11:27:49 +0100 Subject: [PATCH 56/66] Changelog --- changelog.d/8645.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/8645.misc diff --git a/changelog.d/8645.misc b/changelog.d/8645.misc new file mode 100644 index 00000000000..afbeb7b19ca --- /dev/null +++ b/changelog.d/8645.misc @@ -0,0 +1 @@ +Open external account manager for delete other sessions using Chrome custom tabs. From 3b9daec869810320fdbfe1653b346453f7ea153a Mon Sep 17 00:00:00 2001 From: Valere Date: Wed, 27 Sep 2023 15:42:05 +0200 Subject: [PATCH 57/66] Fix QR code login support in rust --- .../sdk/internal/crypto/SecretShareManager.kt | 38 +++++++++++++++++++ .../android/sdk/api/rendezvous/Rendezvous.kt | 11 +----- .../SharedSecretStorageService.kt | 6 +++ .../DefaultSharedSecretStorageService.kt | 5 +++ .../android/sdk/internal/crypto/OlmMachine.kt | 13 +++++++ .../sdk/internal/crypto/RustCryptoService.kt | 4 +- .../sdk/internal/crypto/SecretShareManager.kt | 28 +++++++++++--- 7 files changed, 89 insertions(+), 16 deletions(-) diff --git a/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt b/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt index 7f4f4aee883..56c181a3066 100644 --- a/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt +++ b/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt @@ -136,6 +136,13 @@ internal class SecretShareManager @Inject constructor( .w("handleSecretRequest() : malformed request norequestingDeviceId ") } + if (request.requestingDeviceId == credentials.deviceId) { + return Unit.also { + Timber.tag(loggerTag.value) + .v("handleSecretRequest() : Ignore request from self device") + } + } + val device = cryptoStore.getUserDevice(credentials.userId, deviceId) ?: return Unit.also { Timber.tag(loggerTag.value) @@ -254,6 +261,37 @@ internal class SecretShareManager @Inject constructor( } } + suspend fun requestMissingSecrets() { + // quick implementation for backward compatibility with rust, will request all secrets to all own devices + val secretNames = listOf(MASTER_KEY_SSSS_NAME, SELF_SIGNING_KEY_SSSS_NAME, USER_SIGNING_KEY_SSSS_NAME, KEYBACKUP_SECRET_SSSS_NAME) + + secretNames.forEach { secretName -> + val toDeviceContent = SecretShareRequest( + requestingDeviceId = credentials.deviceId, + secretName = secretName, + requestId = createUniqueTxnId() + ) + + val contentMap = MXUsersDevicesMap() + contentMap.setObject(credentials.userId, "*", toDeviceContent) + + val params = SendToDeviceTask.Params( + eventType = EventType.REQUEST_SECRET, + contentMap = contentMap + ) + try { + withContext(coroutineDispatchers.io) { + sendToDeviceTask.execute(params) + } + Timber.tag(loggerTag.value) + .d("Secret request sent for $secretName") + } catch (failure: Throwable) { + Timber.tag(loggerTag.value) + .w("Failed to request secret $secretName") + } + } + } + suspend fun onSecretSendReceived(toDevice: Event, handleGossip: ((name: String, value: String) -> Boolean)) { Timber.tag(loggerTag.value) .i("onSecretSend() from ${toDevice.senderId} : onSecretSendReceived ${toDevice.content?.get("sender_key")}") diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/rendezvous/Rendezvous.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/rendezvous/Rendezvous.kt index 91f3c2a5068..c2cc95855c3 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/rendezvous/Rendezvous.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/rendezvous/Rendezvous.kt @@ -34,10 +34,6 @@ import org.matrix.android.sdk.api.rendezvous.model.SecureRendezvousChannelAlgori import org.matrix.android.sdk.api.rendezvous.transports.SimpleHttpRendezvousTransport import org.matrix.android.sdk.api.session.Session import org.matrix.android.sdk.api.session.crypto.crosssigning.DeviceTrustLevel -import org.matrix.android.sdk.api.session.crypto.crosssigning.KEYBACKUP_SECRET_SSSS_NAME -import org.matrix.android.sdk.api.session.crypto.crosssigning.MASTER_KEY_SSSS_NAME -import org.matrix.android.sdk.api.session.crypto.crosssigning.SELF_SIGNING_KEY_SSSS_NAME -import org.matrix.android.sdk.api.session.crypto.crosssigning.USER_SIGNING_KEY_SSSS_NAME import org.matrix.android.sdk.api.util.MatrixJsonParser import timber.log.Timber @@ -225,12 +221,7 @@ class Rendezvous( // request secrets from the verifying device Timber.tag(TAG).i("Requesting secrets from $verifyingDeviceId") - session.sharedSecretStorageService().let { - it.requestSecret(MASTER_KEY_SSSS_NAME, verifyingDeviceId) - it.requestSecret(SELF_SIGNING_KEY_SSSS_NAME, verifyingDeviceId) - it.requestSecret(USER_SIGNING_KEY_SSSS_NAME, verifyingDeviceId) - it.requestSecret(KEYBACKUP_SECRET_SSSS_NAME, verifyingDeviceId) - } + session.sharedSecretStorageService().requestMissingSecrets() } else { Timber.tag(TAG).i("Not doing verification") } diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/securestorage/SharedSecretStorageService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/securestorage/SharedSecretStorageService.kt index bdbbd3ea846..783665f9b8e 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/securestorage/SharedSecretStorageService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/securestorage/SharedSecretStorageService.kt @@ -135,5 +135,11 @@ interface SharedSecretStorageService { fun checkShouldBeAbleToAccessSecrets(secretNames: List, keyId: String?): IntegrityResult + @Deprecated("Requesting custom secrets not yet support by rust stack, prefer requestMissingSecrets") suspend fun requestSecret(name: String, myOtherDeviceId: String) + + /** + * Request the missing local secrets to other sessions. + */ + suspend fun requestMissingSecrets() } diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/secrets/DefaultSharedSecretStorageService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/secrets/DefaultSharedSecretStorageService.kt index ddb048a912a..05b9e14b825 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/secrets/DefaultSharedSecretStorageService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/secrets/DefaultSharedSecretStorageService.kt @@ -385,7 +385,12 @@ internal class DefaultSharedSecretStorageService @Inject constructor( return IntegrityResult.Success(keyInfo.content.passphrase != null) } + @Deprecated("Requesting custom secrets not yet support by rust stack, prefer requestMissingSecrets") override suspend fun requestSecret(name: String, myOtherDeviceId: String) { secretShareManager.requestSecretTo(myOtherDeviceId, name) } + + override suspend fun requestMissingSecrets() { + secretShareManager.requestMissingSecrets() + } } diff --git a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt index 3686ab445d6..4646d74c9a1 100644 --- a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt +++ b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/OlmMachine.kt @@ -76,6 +76,7 @@ import org.matrix.rustcomponents.sdk.crypto.DeviceLists import org.matrix.rustcomponents.sdk.crypto.EncryptionSettings import org.matrix.rustcomponents.sdk.crypto.KeyRequestPair import org.matrix.rustcomponents.sdk.crypto.KeysImportResult +import org.matrix.rustcomponents.sdk.crypto.LocalTrust import org.matrix.rustcomponents.sdk.crypto.Logger import org.matrix.rustcomponents.sdk.crypto.MegolmV1BackupKey import org.matrix.rustcomponents.sdk.crypto.Request @@ -869,6 +870,11 @@ internal class OlmMachine @Inject constructor( } } + suspend fun requestMissingSecretsFromOtherSessions(): Boolean { + return withContext(coroutineDispatchers.io) { + inner.queryMissingSecretsFromOtherSessions() + } + } @Throws(CryptoStoreException::class) suspend fun enableBackupV1(key: String, version: String) { return withContext(coroutineDispatchers.computation) { @@ -934,4 +940,11 @@ internal class OlmMachine @Inject constructor( inner.verifyBackup(serializedAuthData) } } + + @Throws(CryptoStoreException::class) + suspend fun setDeviceLocalTrust(userId: String, deviceId: String, trusted: Boolean) { + withContext(coroutineDispatchers.io) { + inner.setLocalTrust(userId, deviceId, if (trusted) LocalTrust.VERIFIED else LocalTrust.UNSET) + } + } } diff --git a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/RustCryptoService.kt b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/RustCryptoService.kt index 57f81ef5928..d5069fe0101 100755 --- a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/RustCryptoService.kt +++ b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/RustCryptoService.kt @@ -31,6 +31,7 @@ import org.matrix.android.sdk.api.MatrixCoroutineDispatchers import org.matrix.android.sdk.api.auth.UserInteractiveAuthInterceptor import org.matrix.android.sdk.api.crypto.MXCRYPTO_ALGORITHM_MEGOLM import org.matrix.android.sdk.api.crypto.MXCryptoConfig +import org.matrix.android.sdk.api.extensions.orFalse import org.matrix.android.sdk.api.extensions.tryOrNull import org.matrix.android.sdk.api.listeners.ProgressListener import org.matrix.android.sdk.api.logger.LoggerTag @@ -536,7 +537,8 @@ internal class RustCryptoService @Inject constructor( } override suspend fun setDeviceVerification(trustLevel: DeviceTrustLevel, userId: String, deviceId: String) { - TODO("Not yet implemented") + Timber.w("Rust stack only support API to set local trust") + olmMachine.setDeviceLocalTrust(userId, deviceId, trustLevel.isLocallyVerified().orFalse()) } /** diff --git a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt index b4fab22677f..c7b299cce23 100644 --- a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt +++ b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt @@ -16,15 +16,33 @@ package org.matrix.android.sdk.internal.crypto -import org.matrix.android.sdk.BuildConfig +import org.matrix.android.sdk.api.session.events.model.EventType +import org.matrix.android.sdk.internal.crypto.network.OutgoingRequestsProcessor +import org.matrix.rustcomponents.sdk.crypto.Request import timber.log.Timber import javax.inject.Inject +import javax.inject.Provider -internal class SecretShareManager @Inject constructor() { +internal class SecretShareManager @Inject constructor( + private val olmMachine: Provider, + private val outgoingRequestsProcessor: OutgoingRequestsProcessor) { suspend fun requestSecretTo(deviceId: String, secretName: String) { - // nop in rust? - if (BuildConfig.DEBUG) TODO("requestSecretTo Not implemented in Rust") - Timber.e("SecretShareManager Not supported in rust $deviceId, $secretName") + Timber.v("SecretShareManager requesting $deviceId, $secretName") + if (this.olmMachine.get().requestMissingSecretsFromOtherSessions()) { + // immediately send the requests + outgoingRequestsProcessor.processOutgoingRequests(this.olmMachine.get()) { + it is Request.ToDevice && it.eventType == EventType.REQUEST_SECRET + } + } + } + + suspend fun requestMissingSecrets() { + this.olmMachine.get().requestMissingSecretsFromOtherSessions() + + // immediately send the requests + outgoingRequestsProcessor.processOutgoingRequests(this.olmMachine.get()) { + it is Request.ToDevice && it.eventType == EventType.REQUEST_SECRET + } } } From 6ee438d7d561a8b4c5431e126f9785fd67da01ca Mon Sep 17 00:00:00 2001 From: Valere Date: Sun, 1 Oct 2023 19:25:12 +0200 Subject: [PATCH 58/66] bump crypto sdk --- matrix-sdk-android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/build.gradle b/matrix-sdk-android/build.gradle index c7183b83658..63fb13ead8d 100644 --- a/matrix-sdk-android/build.gradle +++ b/matrix-sdk-android/build.gradle @@ -216,7 +216,7 @@ dependencies { implementation libs.google.phonenumber - rustCryptoImplementation("org.matrix.rustcomponents:crypto-android:0.3.14") + rustCryptoImplementation("org.matrix.rustcomponents:crypto-android:0.3.15") // rustCryptoApi project(":library:rustCrypto") testImplementation libs.tests.junit From 42eec4b557cbdb29aaa130e01dc403cfafd70613 Mon Sep 17 00:00:00 2001 From: Valere Date: Sun, 1 Oct 2023 19:41:46 +0200 Subject: [PATCH 59/66] update changelog --- changelog.d/8653.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/8653.bugfix diff --git a/changelog.d/8653.bugfix b/changelog.d/8653.bugfix new file mode 100644 index 00000000000..8aa0ff2e17a --- /dev/null +++ b/changelog.d/8653.bugfix @@ -0,0 +1 @@ +Fix Login with QR code not working with rust crypto. From 0d70f6eb5490486460bf49e75ef3a5982ed9a649 Mon Sep 17 00:00:00 2001 From: Valere Date: Sun, 1 Oct 2023 21:59:46 +0200 Subject: [PATCH 60/66] missing mock --- .../vector/app/test/fakes/FakeSharedSecretStorageService.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vector/src/test/java/im/vector/app/test/fakes/FakeSharedSecretStorageService.kt b/vector/src/test/java/im/vector/app/test/fakes/FakeSharedSecretStorageService.kt index 1dc36de7090..cf7198469c8 100644 --- a/vector/src/test/java/im/vector/app/test/fakes/FakeSharedSecretStorageService.kt +++ b/vector/src/test/java/im/vector/app/test/fakes/FakeSharedSecretStorageService.kt @@ -79,6 +79,10 @@ class FakeSharedSecretStorageService : SharedSecretStorageService by mockk() { TODO("Not yet implemented") } + override suspend fun requestMissingSecrets() { + TODO("Not yet implemented") + } + fun givenIsRecoverySetupReturns(isRecoverySetup: Boolean) { every { isRecoverySetup() } returns isRecoverySetup } From 2709cb297311b12ce9ef499c2f713cefc0e72012 Mon Sep 17 00:00:00 2001 From: Valere Date: Sun, 1 Oct 2023 22:19:54 +0200 Subject: [PATCH 61/66] missing deprecated --- .../im/vector/app/test/fakes/FakeSharedSecretStorageService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/test/java/im/vector/app/test/fakes/FakeSharedSecretStorageService.kt b/vector/src/test/java/im/vector/app/test/fakes/FakeSharedSecretStorageService.kt index cf7198469c8..9d46cc0c286 100644 --- a/vector/src/test/java/im/vector/app/test/fakes/FakeSharedSecretStorageService.kt +++ b/vector/src/test/java/im/vector/app/test/fakes/FakeSharedSecretStorageService.kt @@ -75,6 +75,7 @@ class FakeSharedSecretStorageService : SharedSecretStorageService by mockk() { override fun checkShouldBeAbleToAccessSecrets(secretNames: List, keyId: String?) = integrityResult + @Deprecated("Requesting custom secrets not yet support by rust stack, prefer requestMissingSecrets") override suspend fun requestSecret(name: String, myOtherDeviceId: String) { TODO("Not yet implemented") } From 1bd2da5c996c0fda28241e2c570c9727d85c8d6f Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 2 Oct 2023 16:39:08 +0200 Subject: [PATCH 62/66] disable flacky test on legacy crypto --- .../android/sdk/internal/crypto/E2eeShareKeysHistoryTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/internal/crypto/E2eeShareKeysHistoryTest.kt b/matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/internal/crypto/E2eeShareKeysHistoryTest.kt index 700f912cf1b..fc1b5bba93d 100644 --- a/matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/internal/crypto/E2eeShareKeysHistoryTest.kt +++ b/matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/internal/crypto/E2eeShareKeysHistoryTest.kt @@ -28,6 +28,7 @@ import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.JUnit4 import org.junit.runners.MethodSorters +import org.matrix.android.sdk.BuildConfig import org.matrix.android.sdk.InstrumentedTest import org.matrix.android.sdk.api.query.QueryStringValue import org.matrix.android.sdk.api.session.Session @@ -196,6 +197,7 @@ class E2eeShareKeysHistoryTest : InstrumentedTest { @Test fun testNeedsRotationFromSharedToWorldReadable() { + Assume.assumeTrue("Test is flacky on legacy crypto", BuildConfig.FLAVOR == "rustCrypto") testRotationDueToVisibilityChange(RoomHistoryVisibility.SHARED, RoomHistoryVisibilityContent("world_readable")) } From 87df8ab6f60c6466e2670e98bb6d2183b334dcdb Mon Sep 17 00:00:00 2001 From: Valere Date: Tue, 3 Oct 2023 11:24:38 +0200 Subject: [PATCH 63/66] Update matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt Co-authored-by: Benoit Marty --- .../matrix/android/sdk/internal/crypto/SecretShareManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt b/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt index 56c181a3066..24591e8bd49 100644 --- a/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt +++ b/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt @@ -136,7 +136,7 @@ internal class SecretShareManager @Inject constructor( .w("handleSecretRequest() : malformed request norequestingDeviceId ") } - if (request.requestingDeviceId == credentials.deviceId) { + if (deviceId == credentials.deviceId) { return Unit.also { Timber.tag(loggerTag.value) .v("handleSecretRequest() : Ignore request from self device") From a015eda72cbce56de8dfe47a0c5f78cfd723c0cd Mon Sep 17 00:00:00 2001 From: Valere Date: Tue, 3 Oct 2023 11:29:50 +0200 Subject: [PATCH 64/66] code review --- .../matrix/android/sdk/api/rendezvous/Rendezvous.kt | 4 ++-- .../android/sdk/internal/crypto/SecretShareManager.kt | 10 +++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/rendezvous/Rendezvous.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/rendezvous/Rendezvous.kt index c2cc95855c3..d5596ce56f0 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/rendezvous/Rendezvous.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/rendezvous/Rendezvous.kt @@ -218,8 +218,8 @@ class Rendezvous( Timber.tag(TAG).i("No master key given by verifying device") } - // request secrets from the verifying device - Timber.tag(TAG).i("Requesting secrets from $verifyingDeviceId") + // request secrets from other sessions. + Timber.tag(TAG).i("Requesting secrets from other sessions") session.sharedSecretStorageService().requestMissingSecrets() } else { diff --git a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt index c7b299cce23..ba467766631 100644 --- a/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt +++ b/matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt @@ -28,13 +28,9 @@ internal class SecretShareManager @Inject constructor( private val outgoingRequestsProcessor: OutgoingRequestsProcessor) { suspend fun requestSecretTo(deviceId: String, secretName: String) { - Timber.v("SecretShareManager requesting $deviceId, $secretName") - if (this.olmMachine.get().requestMissingSecretsFromOtherSessions()) { - // immediately send the requests - outgoingRequestsProcessor.processOutgoingRequests(this.olmMachine.get()) { - it is Request.ToDevice && it.eventType == EventType.REQUEST_SECRET - } - } + Timber.w("SecretShareManager requesting custom secrets not supported $deviceId, $secretName") + // rust stack only support requesting secrets defined in the spec (not custom secret yet) + requestMissingSecrets() } suspend fun requestMissingSecrets() { From d379cef0bac3170f06f989bbaf52369496b6c648 Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 5 Oct 2023 16:55:44 +0200 Subject: [PATCH 65/66] Changelog for version 1.6.6 --- CHANGES.md | 18 ++++++++++++++++++ changelog.d/7758.bugfix | 1 - changelog.d/8615.misc | 1 - changelog.d/8616.misc | 1 - changelog.d/8619.misc | 1 - changelog.d/8623.misc | 1 - changelog.d/8644.bugfix | 1 - changelog.d/8645.misc | 1 - changelog.d/8653.bugfix | 1 - 9 files changed, 18 insertions(+), 8 deletions(-) delete mode 100644 changelog.d/7758.bugfix delete mode 100644 changelog.d/8615.misc delete mode 100644 changelog.d/8616.misc delete mode 100644 changelog.d/8619.misc delete mode 100644 changelog.d/8623.misc delete mode 100644 changelog.d/8644.bugfix delete mode 100644 changelog.d/8645.misc delete mode 100644 changelog.d/8653.bugfix diff --git a/CHANGES.md b/CHANGES.md index 53ddf8a4ef8..6996863716b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,21 @@ +Changes in Element v1.6.6 (2023-10-05) +====================================== + +Bugfixes 🐛 +---------- + - Fixed JWT token for Jitsi openidtoken-jwt authentication ([#7758](https://github.com/vector-im/element-android/issues/7758)) + - Fix crash when max shortcuts count is exceeded ([#8644](https://github.com/vector-im/element-android/issues/8644)) + - Fix Login with QR code not working with rust crypto. ([#8653](https://github.com/vector-im/element-android/issues/8653)) + +Other changes +------------- + - Use 3PID capability to show / hide email UI in settings ([#8615](https://github.com/vector-im/element-android/issues/8615)) + - If an external account manager is configured on the server, use it to delete other sessions and hide the multi session deletion. ([#8616](https://github.com/vector-im/element-android/issues/8616)) + - Hide account deactivation UI for account managed externally. ([#8619](https://github.com/vector-im/element-android/issues/8619)) + - Fix import of SAS Emoji string translations. ([#8623](https://github.com/vector-im/element-android/issues/8623)) + - Open external account manager for delete other sessions using Chrome custom tabs. ([#8645](https://github.com/vector-im/element-android/issues/8645)) + + Changes in Element v1.6.5 (2023-07-25) ====================================== diff --git a/changelog.d/7758.bugfix b/changelog.d/7758.bugfix deleted file mode 100644 index 7a91a641923..00000000000 --- a/changelog.d/7758.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed JWT token for Jitsi openidtoken-jwt authentication diff --git a/changelog.d/8615.misc b/changelog.d/8615.misc deleted file mode 100644 index c89b295377c..00000000000 --- a/changelog.d/8615.misc +++ /dev/null @@ -1 +0,0 @@ -Use 3PID capability to show / hide email UI in settings diff --git a/changelog.d/8616.misc b/changelog.d/8616.misc deleted file mode 100644 index 58a2596287c..00000000000 --- a/changelog.d/8616.misc +++ /dev/null @@ -1 +0,0 @@ -If an external account manager is configured on the server, use it to delete other sessions and hide the multi session deletion. diff --git a/changelog.d/8619.misc b/changelog.d/8619.misc deleted file mode 100644 index 73e24e1c557..00000000000 --- a/changelog.d/8619.misc +++ /dev/null @@ -1 +0,0 @@ -Hide account deactivation UI for account managed externally. diff --git a/changelog.d/8623.misc b/changelog.d/8623.misc deleted file mode 100644 index d9c70067029..00000000000 --- a/changelog.d/8623.misc +++ /dev/null @@ -1 +0,0 @@ -Fix import of SAS Emoji string translations. \ No newline at end of file diff --git a/changelog.d/8644.bugfix b/changelog.d/8644.bugfix deleted file mode 100644 index c9898370cb4..00000000000 --- a/changelog.d/8644.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix crash when max shortcuts count is exceeded \ No newline at end of file diff --git a/changelog.d/8645.misc b/changelog.d/8645.misc deleted file mode 100644 index afbeb7b19ca..00000000000 --- a/changelog.d/8645.misc +++ /dev/null @@ -1 +0,0 @@ -Open external account manager for delete other sessions using Chrome custom tabs. diff --git a/changelog.d/8653.bugfix b/changelog.d/8653.bugfix deleted file mode 100644 index 8aa0ff2e17a..00000000000 --- a/changelog.d/8653.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix Login with QR code not working with rust crypto. From 7001f213305a9bc09819eff07cf7bce7b847c805 Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 5 Oct 2023 16:57:21 +0200 Subject: [PATCH 66/66] Adding fastlane file for version 1.6.6 --- fastlane/metadata/android/en-US/changelogs/40106060.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 fastlane/metadata/android/en-US/changelogs/40106060.txt diff --git a/fastlane/metadata/android/en-US/changelogs/40106060.txt b/fastlane/metadata/android/en-US/changelogs/40106060.txt new file mode 100644 index 00000000000..a92874476b7 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/40106060.txt @@ -0,0 +1,2 @@ +Main changes in this version: mainly bug fixes. +Full changelog: https://github.com/vector-im/element-android/releases \ No newline at end of file