Collab UI v2 (#2618)

This PR implements
https://www.figma.com/file/pLq7dvhx2mFeWFOedXpUQ5/Project-%E2%80%93-Collaboration-UI?type=design&node-id=666%3A8610&t=XFGk6KEtTCFXBvCQ-1

Release notes:
- [x] Redesigned collaboration UI
- [x] Added voice support
This commit is contained in:
Mikayla Maki
2023-06-28 09:14:39 -07:00
committed by GitHub
368 changed files with 4748 additions and 439 deletions
+4 -1
View File
@@ -7,6 +7,7 @@ use std::{
fmt::{self, Display},
marker::PhantomData,
mem,
panic::Location,
pin::Pin,
rc::Rc,
sync::Arc,
@@ -965,10 +966,12 @@ impl<T> Task<T> {
}
impl<T: 'static, E: 'static + Display> Task<Result<T, E>> {
#[track_caller]
pub fn detach_and_log_err(self, cx: &mut AppContext) {
let caller = Location::caller();
cx.spawn(|_| async move {
if let Err(err) = self.await {
log::error!("{:#}", err);
log::error!("{}:{}: {:#}", caller.file(), caller.line(), err);
}
})
.detach();