Skip to content

Commit 2b86ff4

Browse files
committed
Rename method.
1 parent 4e5bbaf commit 2b86ff4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

app/src/main/kotlin/io/element/android/x/intent/DefaultIntentProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DefaultIntentProvider @Inject constructor(
3333
): Intent {
3434
return Intent(context, MainActivity::class.java).apply {
3535
action = Intent.ACTION_VIEW
36-
data = deepLinkCreator.room(sessionId, roomId, threadId).toUri()
36+
data = deepLinkCreator.create(sessionId, roomId, threadId).toUri()
3737
}
3838
}
3939
}

libraries/deeplink/api/src/main/kotlin/io/element/android/libraries/deeplink/api/DeepLinkCreator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ import io.element.android.libraries.matrix.api.core.SessionId
1212
import io.element.android.libraries.matrix.api.core.ThreadId
1313

1414
fun interface DeepLinkCreator {
15-
fun room(sessionId: SessionId, roomId: RoomId?, threadId: ThreadId?): String
15+
fun create(sessionId: SessionId, roomId: RoomId?, threadId: ThreadId?): String
1616
}

libraries/deeplink/impl/src/main/kotlin/io/element/android/libraries/deeplink/impl/DefaultDeepLinkCreator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import javax.inject.Inject
1717

1818
@ContributesBinding(AppScope::class)
1919
class DefaultDeepLinkCreator @Inject constructor() : DeepLinkCreator {
20-
override fun room(sessionId: SessionId, roomId: RoomId?, threadId: ThreadId?): String {
20+
override fun create(sessionId: SessionId, roomId: RoomId?, threadId: ThreadId?): String {
2121
return buildString {
2222
append("$SCHEME://$HOST/")
2323
append(sessionId.value)

libraries/deeplink/impl/src/test/kotlin/io/element/android/libraries/deeplink/impl/DefaultDeepLinkCreatorTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import org.junit.Test
1515

1616
class DefaultDeepLinkCreatorTest {
1717
@Test
18-
fun room() {
18+
fun create() {
1919
val sut = DefaultDeepLinkCreator()
20-
assertThat(sut.room(A_SESSION_ID, null, null))
20+
assertThat(sut.create(A_SESSION_ID, null, null))
2121
.isEqualTo("elementx://open/@alice:server.org")
22-
assertThat(sut.room(A_SESSION_ID, A_ROOM_ID, null))
22+
assertThat(sut.create(A_SESSION_ID, A_ROOM_ID, null))
2323
.isEqualTo("elementx://open/@alice:server.org/!aRoomId:domain")
24-
assertThat(sut.room(A_SESSION_ID, A_ROOM_ID, A_THREAD_ID))
24+
assertThat(sut.create(A_SESSION_ID, A_ROOM_ID, A_THREAD_ID))
2525
.isEqualTo("elementx://open/@alice:server.org/!aRoomId:domain/\$aThreadId")
2626
}
2727
}

0 commit comments

Comments
 (0)