Put channel call participants back in channel row
Open both the channel notes and the channel chat when clicking a channel
This commit is contained in:
parent
fe6f0a253b
commit
f53a1ee46d
4 changed files with 109 additions and 187 deletions
|
@ -53,6 +53,7 @@ impl ChannelView {
|
|||
|
||||
cx.spawn(|mut cx| async move {
|
||||
let channel_buffer = channel_buffer.await?;
|
||||
|
||||
let markdown = markdown.await?;
|
||||
channel_buffer.update(&mut cx, |buffer, cx| {
|
||||
buffer.buffer().update(cx, |buffer, cx| {
|
||||
|
@ -75,7 +76,6 @@ impl ChannelView {
|
|||
cx: &mut ViewContext<Self>,
|
||||
) -> Self {
|
||||
let buffer = channel_buffer.read(cx).buffer();
|
||||
// buffer.update(cx, |buffer, cx| buffer.set_language(language, cx));
|
||||
let editor = cx.add_view(|cx| Editor::for_buffer(buffer, None, cx));
|
||||
let _editor_event_subscription = cx.subscribe(&editor, |_, _, e, cx| cx.emit(e.clone()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue