mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Use receiver.
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ class SecureBackupEnterRecoveryKeyViewTest {
|
|||||||
onBackClick: () -> Unit = EnsureNeverCalled(),
|
onBackClick: () -> Unit = EnsureNeverCalled(),
|
||||||
onCreateNewRecoveryKey: () -> Unit = EnsureNeverCalled(),
|
onCreateNewRecoveryKey: () -> Unit = EnsureNeverCalled(),
|
||||||
) {
|
) {
|
||||||
rule.setContent {
|
setContent {
|
||||||
SecureBackupEnterRecoveryKeyView(
|
SecureBackupEnterRecoveryKeyView(
|
||||||
state = state,
|
state = state,
|
||||||
onSuccess = onDone,
|
onSuccess = onDone,
|
||||||
|
|||||||
+1
-1
@@ -218,7 +218,7 @@ class VerifySelfSessionViewTest {
|
|||||||
onEnterRecoveryKey: () -> Unit = EnsureNeverCalled(),
|
onEnterRecoveryKey: () -> Unit = EnsureNeverCalled(),
|
||||||
onFinished: () -> Unit = EnsureNeverCalled(),
|
onFinished: () -> Unit = EnsureNeverCalled(),
|
||||||
) {
|
) {
|
||||||
rule.setContent {
|
setContent {
|
||||||
VerifySelfSessionView(
|
VerifySelfSessionView(
|
||||||
state = state,
|
state = state,
|
||||||
onEnterRecoveryKey = onEnterRecoveryKey,
|
onEnterRecoveryKey = onEnterRecoveryKey,
|
||||||
|
|||||||
+1
-1
@@ -183,7 +183,7 @@ class MarkdownTextInputTest {
|
|||||||
onTyping: (Boolean) -> Unit = {},
|
onTyping: (Boolean) -> Unit = {},
|
||||||
onSuggestionReceived: (Suggestion?) -> Unit = {},
|
onSuggestionReceived: (Suggestion?) -> Unit = {},
|
||||||
) {
|
) {
|
||||||
rule.setContent {
|
setContent {
|
||||||
val style = ElementRichTextEditorStyle.composerStyle(hasFocus = state.hasFocus)
|
val style = ElementRichTextEditorStyle.composerStyle(hasFocus = state.hasFocus)
|
||||||
MarkdownTextInput(
|
MarkdownTextInput(
|
||||||
state = state,
|
state = state,
|
||||||
|
|||||||
Reference in New Issue
Block a user