UX cleanup: DM details screen (#2820)
* UX cleanup: user profile. - Move send DM to a CTA button. - Add 'Call' CTA button too when there is a DM with that user and a call is possible. - Add missing tests. * Update screenshots * Add tests for clicking on the avatar --------- Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
parent
0bbb107dea
commit
5dddda64d1
38 changed files with 396 additions and 56 deletions
|
|
@ -105,3 +105,9 @@ fun <T, R> ensureCalledOnceWithParam(param: T, block: (callback: EnsureCalledOnc
|
|||
block(callback)
|
||||
callback.assertSuccess()
|
||||
}
|
||||
|
||||
fun <P1, P2> ensureCalledOnceWithTwoParams(param1: P1, param2: P2, block: (callback: EnsureCalledOnceWithTwoParams<P1, P2>) -> Unit) {
|
||||
val callback = EnsureCalledOnceWithTwoParams(param1, param2)
|
||||
block(callback)
|
||||
callback.assertSuccess()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue