Rename first_connection
to connected_once
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
0597c662e4
commit
b751156cd7
3 changed files with 11 additions and 15 deletions
|
@ -280,9 +280,9 @@ impl Server {
|
|||
let _ = send_connection_id.send(connection_id).await;
|
||||
}
|
||||
|
||||
if user.first_connection {
|
||||
if !user.connected_once {
|
||||
this.peer.send(connection_id, proto::ShowContacts {})?;
|
||||
this.app_state.db.set_user_first_connection(user_id, false).await?;
|
||||
this.app_state.db.set_user_connected_once(user_id, true).await?;
|
||||
}
|
||||
|
||||
let (contacts, invite_code) = future::try_join(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue