element-x-ada/libraries/deeplink/src
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
..
main/kotlin/io/element/android/libraries/deeplink Rework DeeplinkParser to fix a test (and fix a bug in release mode). 2023-07-12 09:59:52 +02:00
test/kotlin/io/element/android/libraries/deeplink Display room invitation notification (#735) 2023-07-10 14:34:58 +02:00