Automatically fetch remote participant users in Room

This commit is contained in:
Antonio Scandurra 2022-10-03 16:09:49 +02:00
parent da6106db8e
commit ad323d6e3b
3 changed files with 72 additions and 71 deletions

View file

@ -1,7 +1,6 @@
use anyhow::{anyhow, Result};
use client::proto;
use gpui::ModelHandle;
use project::Project;
use client::{proto, User};
use std::sync::Arc;
pub enum ParticipantLocation {
Project { project_id: u64 },
@ -21,7 +20,7 @@ impl ParticipantLocation {
}
pub struct RemoteParticipant {
pub user_id: u64,
pub projects: Vec<ModelHandle<Project>>,
pub user: Arc<User>,
pub project_ids: Vec<u64>,
pub location: ParticipantLocation,
}