Refactor to remove toggle_follow

This commit is contained in:
Conrad Irwin 2023-10-02 16:51:02 -06:00
parent 27d784b23e
commit 528fa5c57b
3 changed files with 27 additions and 29 deletions

View file

@ -702,9 +702,7 @@ async fn test_following_to_channel_notes_without_a_shared_project(
// Client B follows client A.
workspace_b
.update(cx_b, |workspace, cx| {
workspace
.toggle_follow(client_a.peer_id().unwrap(), cx)
.unwrap()
workspace.follow(client_a.peer_id().unwrap(), cx).unwrap()
})
.await
.unwrap();