Avoid applying outdated UpdateProject methods after rejoining a room

This commit is contained in:
Max Brunsfeld 2023-04-04 21:49:34 -07:00
parent 1ccf174388
commit 1159f5517b
2 changed files with 6 additions and 2 deletions

View file

@ -1089,8 +1089,10 @@ impl Project {
pub fn rejoined(
&mut self,
message: proto::RejoinedProject,
message_id: u32,
cx: &mut ModelContext<Self>,
) -> Result<()> {
self.join_project_response_message_id = message_id;
self.set_worktrees_from_proto(message.worktrees, cx)?;
self.set_collaborators_from_proto(message.collaborators, cx)?;
self.language_server_statuses = message