element-x-ada/libraries/deeplink
Benoit Marty e85de6b300 Rework DeeplinkParser to fix a test (and fix a bug in release mode).
The test was failing in release mode because there is not check on `RoomId` format, so INVITE_LIST value ("invites") is seen as a valid RoomId.
First check for known paths, then try to parse as RoomId. The tryOrNull will return null only in debug mode, so I think we can remove it.
Error was:
value of: getFromIntent(...)
expected: InviteList(sessionId=@alice:server.org)
but was : Room(sessionId=@alice:server.org, roomId=invites, threadId=null)
	at io.element.android.libraries.deeplink.DeeplinkParserTest.nominal cases(DeeplinkParserTest.kt:54)
2023-07-12 09:59:52 +02:00
..
src Rework DeeplinkParser to fix a test (and fix a bug in release mode). 2023-07-12 09:59:52 +02:00
build.gradle.kts Room list: tweak UI and add overflow menu with report bug and invite friends action. 2023-06-27 19:23:37 +02:00