Show requests in contacts panel
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
e9d8cc94cc
commit
40f1427885
6 changed files with 437 additions and 195 deletions
|
@ -5237,8 +5237,8 @@ mod tests {
|
|||
// User B accepts the request from user A.
|
||||
client_b
|
||||
.user_store
|
||||
.read_with(cx_b, |store, _| {
|
||||
store.respond_to_contact_request(client_a.user_id().unwrap(), true)
|
||||
.update(cx_b, |store, cx| {
|
||||
store.respond_to_contact_request(client_a.user_id().unwrap(), true, cx)
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
@ -5281,8 +5281,8 @@ mod tests {
|
|||
// User B rejects the request from user C.
|
||||
client_b
|
||||
.user_store
|
||||
.read_with(cx_b, |store, _| {
|
||||
store.respond_to_contact_request(client_c.user_id().unwrap(), false)
|
||||
.update(cx_b, |store, cx| {
|
||||
store.respond_to_contact_request(client_c.user_id().unwrap(), false, cx)
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
@ -6506,8 +6506,8 @@ mod tests {
|
|||
cx_a.foreground().run_until_parked();
|
||||
client_b
|
||||
.user_store
|
||||
.update(*cx_b, |store, _| {
|
||||
store.respond_to_contact_request(client_a.user_id().unwrap(), true)
|
||||
.update(*cx_b, |store, cx| {
|
||||
store.respond_to_contact_request(client_a.user_id().unwrap(), true, cx)
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue