Always open project when added to a call via the +
button
This commit is contained in:
parent
087760dba0
commit
84eebbe24a
1 changed files with 2 additions and 6 deletions
|
@ -482,11 +482,7 @@ impl ContactsPopover {
|
||||||
) -> ElementBox {
|
) -> ElementBox {
|
||||||
let online = contact.online;
|
let online = contact.online;
|
||||||
let user_id = contact.user.id;
|
let user_id = contact.user.id;
|
||||||
let initial_project = if ActiveCall::global(cx).read(cx).room().is_none() {
|
let initial_project = project.clone();
|
||||||
Some(project.clone())
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
};
|
|
||||||
let mut element =
|
let mut element =
|
||||||
MouseEventHandler::<Contact>::new(contact.user.id as usize, cx, |_, _| {
|
MouseEventHandler::<Contact>::new(contact.user.id as usize, cx, |_, _| {
|
||||||
Flex::row()
|
Flex::row()
|
||||||
|
@ -519,7 +515,7 @@ impl ContactsPopover {
|
||||||
if online {
|
if online {
|
||||||
cx.dispatch_action(Call {
|
cx.dispatch_action(Call {
|
||||||
recipient_user_id: user_id,
|
recipient_user_id: user_id,
|
||||||
initial_project: initial_project.clone(),
|
initial_project: Some(initial_project.clone()),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue