Plumbing to pass role
for room participants
This commit is contained in:
parent
a801c85a1b
commit
88ed5f7290
7 changed files with 11 additions and 4 deletions
|
@ -1126,6 +1126,7 @@ impl Database {
|
|||
projects: Default::default(),
|
||||
location: Some(proto::ParticipantLocation { variant: location }),
|
||||
participant_index: participant_index as u32,
|
||||
role: db_participant.role.unwrap_or(ChannelRole::Member).into(),
|
||||
},
|
||||
);
|
||||
} else {
|
||||
|
@ -1137,6 +1138,7 @@ impl Database {
|
|||
}
|
||||
}
|
||||
drop(db_participants);
|
||||
dbg!(&participants);
|
||||
|
||||
let mut db_projects = db_room
|
||||
.find_related(project::Entity)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::db::{ProjectId, RoomId, RoomParticipantId, ServerId, UserId};
|
||||
use crate::db::{ChannelRole, ProjectId, RoomId, RoomParticipantId, ServerId, UserId};
|
||||
use rpc::ConnectionId;
|
||||
use sea_orm::entity::prelude::*;
|
||||
|
||||
|
@ -19,6 +19,7 @@ pub struct Model {
|
|||
pub calling_connection_id: i32,
|
||||
pub calling_connection_server_id: Option<ServerId>,
|
||||
pub participant_index: Option<i32>,
|
||||
pub role: Option<ChannelRole>,
|
||||
}
|
||||
|
||||
impl Model {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue