Skip to content

Commit 30a4921

Browse files
committed
Merge branch 'release/25.05.2'
2 parents aa365d2 + 6b90a5e commit 30a4921

File tree

94 files changed

+1497
-1171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1497
-1171
lines changed

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
Changes in Element X v25.05.1
2+
=============================
3+
4+
## What's Changed
5+
### 🐛 Bugfixes
6+
* Fix broken Element Call in 25.05.0 by @bmarty in https://github.com/element-hq/element-x-android/pull/4694
7+
### Dependency upgrades
8+
* fix(deps): update android.gradle.plugin to v8.10.0 by @renovate in https://github.com/element-hq/element-x-android/pull/4687
9+
* fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.5.8 by @renovate in https://github.com/element-hq/element-x-android/pull/4696
10+
### Others
11+
* Let EnterpriseService prevent usage of homeserver by @bmarty in https://github.com/element-hq/element-x-android/pull/4682
12+
13+
14+
**Full Changelog**: https://github.com/element-hq/element-x-android/compare/v25.05.0...v25.05.1
15+
116
Changes in Element X v25.05.0
217
=============================
318

appconfig/src/main/kotlin/io/element/android/appconfig/LearnMoreConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ package io.element.android.appconfig
99

1010
object LearnMoreConfig {
1111
const val ENCRYPTION_URL: String = "https://element.io/help#encryption"
12+
const val DEVICE_VERIFICATION_URL: String = "https://element.io/help#encryption-device-verification"
1213
const val SECURE_BACKUP_URL: String = "https://element.io/help#encryption5"
1314
const val IDENTITY_CHANGE_URL: String = "https://element.io/help#encryption18"
1415
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Main changes in this version: TODO.
2+
Full changelog: https://github.com/element-hq/element-x-android/releases

features/ftue/impl/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import extension.setupAnvil
2-
import org.gradle.kotlin.dsl.test
32

43
/*
54
* Copyright 2023, 2024 New Vector Ltd.

features/ftue/impl/src/main/kotlin/io/element/android/features/ftue/impl/sessionverification/FtueSessionVerificationFlowNode.kt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import io.element.android.anvilannotations.ContributesNode
2626
import io.element.android.appconfig.LearnMoreConfig
2727
import io.element.android.features.ftue.impl.sessionverification.choosemode.ChooseSelfVerificationModeNode
2828
import io.element.android.features.securebackup.api.SecureBackupEntryPoint
29-
import io.element.android.features.verifysession.api.VerifySessionEntryPoint
29+
import io.element.android.features.verifysession.api.OutgoingVerificationEntryPoint
3030
import io.element.android.libraries.architecture.BackstackView
3131
import io.element.android.libraries.architecture.BaseFlowNode
3232
import io.element.android.libraries.architecture.createNode
@@ -40,7 +40,7 @@ import kotlinx.parcelize.Parcelize
4040
class FtueSessionVerificationFlowNode @AssistedInject constructor(
4141
@Assisted buildContext: BuildContext,
4242
@Assisted plugins: List<Plugin>,
43-
private val verifySessionEntryPoint: VerifySessionEntryPoint,
43+
private val outgoingVerificationEntryPoint: OutgoingVerificationEntryPoint,
4444
private val secureBackupEntryPoint: SecureBackupEntryPoint,
4545
) : BaseFlowNode<FtueSessionVerificationFlowNode.NavTarget>(
4646
backstack = BackStack(
@@ -94,19 +94,19 @@ class FtueSessionVerificationFlowNode @AssistedInject constructor(
9494
}
9595

9696
override fun onLearnMoreAboutEncryption() {
97-
learnMoreUrl.value = LearnMoreConfig.ENCRYPTION_URL
97+
learnMoreUrl.value = LearnMoreConfig.DEVICE_VERIFICATION_URL
9898
}
9999
}
100100

101101
createNode<ChooseSelfVerificationModeNode>(buildContext, plugins = listOf(callback))
102102
}
103103
is NavTarget.UseAnotherDevice -> {
104-
verifySessionEntryPoint.nodeBuilder(this, buildContext)
105-
.params(VerifySessionEntryPoint.Params(
104+
outgoingVerificationEntryPoint.nodeBuilder(this, buildContext)
105+
.params(OutgoingVerificationEntryPoint.Params(
106106
showDeviceVerifiedScreen = true,
107107
verificationRequest = VerificationRequest.Outgoing.CurrentSession,
108108
))
109-
.callback(object : VerifySessionEntryPoint.Callback {
109+
.callback(object : OutgoingVerificationEntryPoint.Callback {
110110
override fun onDone() {
111111
plugins<Callback>().forEach { it.onDone() }
112112
}
@@ -116,7 +116,8 @@ class FtueSessionVerificationFlowNode @AssistedInject constructor(
116116
}
117117

118118
override fun onLearnMoreAboutEncryption() {
119-
learnMoreUrl.value = LearnMoreConfig.ENCRYPTION_URL
119+
// Note that this callback is never called. The "Learn more" link is not displayed
120+
// for the self session interactive verification.
120121
}
121122
})
122123
.build()

features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/loginpassword/LoginPasswordState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ data class LoginPasswordState(
2828
@Parcelize
2929
data class LoginFormState(
3030
val login: String,
31-
val password: String
31+
val password: String,
3232
) : Parcelable {
3333
companion object {
3434
val Default = LoginFormState("", "")

features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/loginpassword/LoginPasswordStateProvider.kt

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,38 @@
88
package io.element.android.features.login.impl.screens.loginpassword
99

1010
import androidx.compose.ui.tooling.preview.PreviewParameterProvider
11+
import io.element.android.features.login.impl.accountprovider.AccountProvider
1112
import io.element.android.features.login.impl.accountprovider.anAccountProvider
1213
import io.element.android.libraries.architecture.AsyncData
14+
import io.element.android.libraries.matrix.api.core.SessionId
1315

1416
open class LoginPasswordStateProvider : PreviewParameterProvider<LoginPasswordState> {
1517
override val values: Sequence<LoginPasswordState>
1618
get() = sequenceOf(
1719
aLoginPasswordState(),
1820
// Loading
19-
aLoginPasswordState().copy(loginAction = AsyncData.Loading()),
21+
aLoginPasswordState(loginAction = AsyncData.Loading()),
2022
// Error
21-
aLoginPasswordState().copy(loginAction = AsyncData.Failure(Exception("An error occurred"))),
23+
aLoginPasswordState(loginAction = AsyncData.Failure(Exception("An error occurred"))),
2224
)
2325
}
2426

25-
fun aLoginPasswordState() = LoginPasswordState(
26-
accountProvider = anAccountProvider(),
27-
formState = LoginFormState.Default,
28-
loginAction = AsyncData.Uninitialized,
29-
eventSink = {}
27+
fun aLoginPasswordState(
28+
accountProvider: AccountProvider = anAccountProvider(),
29+
formState: LoginFormState = LoginFormState.Default,
30+
loginAction: AsyncData<SessionId> = AsyncData.Uninitialized,
31+
eventSink: (LoginPasswordEvents) -> Unit = {},
32+
) = LoginPasswordState(
33+
accountProvider = accountProvider,
34+
formState = formState,
35+
loginAction = loginAction,
36+
eventSink = eventSink,
37+
)
38+
39+
fun aLoginFormState(
40+
login: String = "",
41+
password: String = "",
42+
) = LoginFormState(
43+
login = login,
44+
password = password,
3045
)

features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/loginpassword/LoginPasswordView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ private fun LoginForm(
201201
{
202202
Box(Modifier.clickable {
203203
loginFieldState = ""
204+
eventSink(LoginPasswordEvents.SetLogin(""))
204205
}) {
205206
Icon(
206207
imageVector = CompoundIcons.Close(),

features/login/impl/src/main/res/values-cs/translations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<string name="screen_change_account_provider_subtitle">"Použijte jiného poskytovatele účtu, například vlastní soukromý server nebo pracovní účet."</string>
1515
<string name="screen_change_account_provider_title">"Změnit poskytovatele účtu"</string>
1616
<string name="screen_change_server_error_invalid_homeserver">"Nepodařilo se nám připojit k tomuto domovskému serveru. Zkontrolujte prosím, zda jste správně zadali adresu URL domovského serveru. Pokud je adresa URL správná, obraťte se na správce domovského serveru, který vám poskytne další pomoc."</string>
17-
<string name="screen_change_server_error_invalid_well_known">"Klouzavá synchronizace není k dispozici kvůli problému se souborem well-known:
17+
<string name="screen_change_server_error_invalid_well_known">"Server není k dispozici kvůli problému se souborem well-known:
1818
%1$s"</string>
1919
<string name="screen_change_server_error_no_sliding_sync_message">"Vybraný poskytovatel účtu nepodporuje klouzavou synchronizaci. Pro použití %1$s je nutná aktualizace serveru."</string>
2020
<string name="screen_change_server_form_header">"Adresa URL domovského serveru"</string>

features/login/impl/src/main/res/values-de/translations.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<string name="screen_change_server_error_invalid_well_known">"Der Server ist aufgrund eines Problems im \"well-known file\" nicht verfügbar:
1818
%1$s"</string>
1919
<string name="screen_change_server_error_no_sliding_sync_message">"Der gewählte Kontoanbieter unterstützt Sliding Sync nicht. Für die Verwendung von %1$s ist ein Upgrade des Servers erforderlich."</string>
20+
<string name="screen_change_server_error_unauthorized_homeserver">"%1$sdarf keine Verbindung herstellen zu%2$s."</string>
2021
<string name="screen_change_server_form_header">"Homeserver-URL"</string>
2122
<string name="screen_change_server_form_notice">"Geben Sie eine Domainadresse ein."</string>
2223
<string name="screen_change_server_subtitle">"Wie lautet die Adresse deines Servers?"</string>

0 commit comments

Comments
 (0)