Fix wrong member count in join room screen for invitation (#4651)
* Fix typo * Fix number of room member not correct for room invitation. * Remove unneeded annotation * Rename test classes. * Add test about number of room members Fix other tests. * Avoid multiple request to get the room preview.
This commit is contained in:
parent
d97473f42b
commit
2fc0c2f251
4 changed files with 102 additions and 24 deletions
|
|
@ -78,7 +78,7 @@ class FakeMatrixClient(
|
|||
Optional.of(ResolvedRoomAlias(A_ROOM_ID, emptyList()))
|
||||
)
|
||||
},
|
||||
private val getNotJoinedRoomResult: (RoomIdOrAlias, List<String>) -> Result<NotJoinedRoom> = { _, _ -> Result.failure(AN_EXCEPTION) },
|
||||
private val getNotJoinedRoomResult: (RoomIdOrAlias, List<String>) -> Result<NotJoinedRoom> = { _, _ -> lambdaError() },
|
||||
private val clearCacheLambda: () -> Unit = { lambdaError() },
|
||||
private val userIdServerNameLambda: () -> String = { lambdaError() },
|
||||
private val getUrlLambda: (String) -> Result<String> = { lambdaError() },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue