Automatically fetch remote participant users in Room
This commit is contained in:
parent
da6106db8e
commit
ad323d6e3b
3 changed files with 72 additions and 71 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue