Show private projects in the contacts panel
Introduce a ProjectStore that lets you iterate through all open projects. Allow projects to be made public by clicking the lock.
This commit is contained in:
parent
a60fef52c4
commit
7ef9de32b1
14 changed files with 627 additions and 309 deletions
|
@ -28,7 +28,7 @@ struct FakeServerState {
|
|||
impl FakeServer {
|
||||
pub async fn for_client(
|
||||
client_user_id: u64,
|
||||
client: &mut Arc<Client>,
|
||||
client: &Arc<Client>,
|
||||
cx: &TestAppContext,
|
||||
) -> Self {
|
||||
let server = Self {
|
||||
|
@ -38,8 +38,7 @@ impl FakeServer {
|
|||
executor: cx.foreground(),
|
||||
};
|
||||
|
||||
Arc::get_mut(client)
|
||||
.unwrap()
|
||||
client
|
||||
.override_authenticate({
|
||||
let state = Arc::downgrade(&server.state);
|
||||
move |cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue