Allow unfollowing of leaders by clicking on their avatar

This commit is contained in:
Antonio Scandurra 2022-03-21 17:10:23 +01:00
parent a154e4500b
commit 9575796f9e
2 changed files with 22 additions and 15 deletions

View file

@ -4281,7 +4281,7 @@ mod tests {
workspace_b
.update(cx_b, |workspace, cx| {
let leader_id = *project_b.read(cx).collaborators().keys().next().unwrap();
workspace.follow(&leader_id.into(), cx).unwrap()
workspace.toggle_follow(&leader_id.into(), cx).unwrap()
})
.await
.unwrap();