Add "Zed > Sign" In menu item
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
co-authored by
Antonio Scandurra
parent
e4a232acc9
commit
9b636fb81e
+5
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user