Add "Zed > Sign" In menu item

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Nathan Sobo
2021-08-24 08:29:36 -06:00
co-authored by Antonio Scandurra
parent e4a232acc9
commit 9b636fb81e
6 changed files with 29 additions and 10 deletions
+5 -2
View File
@@ -124,7 +124,10 @@ impl Client {
}
}
pub async fn log_in_and_connect(self: &Arc<Self>, cx: AsyncAppContext) -> surf::Result<()> {
pub async fn authenticate_and_connect(
self: &Arc<Self>,
cx: AsyncAppContext,
) -> anyhow::Result<()> {
if self.state.read().connection_id.is_some() {
return Ok(());
}
@@ -161,7 +164,7 @@ impl Client {
user_id: u64,
conn: Conn,
cx: AsyncAppContext,
) -> surf::Result<()>
) -> anyhow::Result<()>
where
Conn: 'static
+ futures::Sink<WebSocketMessage, Error = WebSocketError>