Also update chat location when opening a new workspace
This happens a lot in guest workflows where they open the call with a link and are jumped straight to a shared workspace.
This commit is contained in:
parent
df67917768
commit
552d2c26f5
1 changed files with 17 additions and 0 deletions
|
@ -125,6 +125,23 @@ impl ChatPanel {
|
||||||
open_context_menu: None,
|
open_context_menu: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if let Some(channel_id) = ActiveCall::global(cx)
|
||||||
|
.read(cx)
|
||||||
|
.room()
|
||||||
|
.and_then(|room| room.read(cx).channel_id())
|
||||||
|
{
|
||||||
|
this.select_channel(channel_id, None, cx)
|
||||||
|
.detach_and_log_err(cx);
|
||||||
|
|
||||||
|
if ActiveCall::global(cx)
|
||||||
|
.read(cx)
|
||||||
|
.room()
|
||||||
|
.is_some_and(|room| room.read(cx).contains_guests())
|
||||||
|
{
|
||||||
|
cx.emit(PanelEvent::Activate)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.subscriptions.push(cx.subscribe(
|
this.subscriptions.push(cx.subscribe(
|
||||||
&ActiveCall::global(cx),
|
&ActiveCall::global(cx),
|
||||||
move |this: &mut Self, call, event: &room::Event, cx| match event {
|
move |this: &mut Self, call, event: &room::Event, cx| match event {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue