Commit a19af0fbbb

a19af0fbbbf116d6206b152105e758b8b5ba68c3

parent: 70c8a97d85

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-07-06 16:27 UTC

server: Rename the login state.

Layout: unified · split

src/server.rs +3 −3
@@ -119,7 +119,7 @@ impl ServerSettings {
119119 }
120120}
121121
122pub struct LoginState {
122pub struct LoginInfo {
123123 user_id: UserId,
124124}
125125
@@ -162,7 +162,7 @@ pub(crate) struct InnerServer {
162162 settings: ServerSettings,
163163 config: ConfigHandle,
164164 client: Option<Client>,
165 login_state: Option<LoginState>,
165 login_state: Option<LoginInfo>,
166166 connected_state: Rc<RefCell<Option<Connection>>>,
167167 server_buffer: Rc<RefCell<Option<BufferHandle>>>,
168168}
@@ -814,7 +814,7 @@ impl InnerServer {
814814 }
815815
816816 pub fn receive_login(&mut self, response: LoginResponse) {
817 let login_state = LoginState {
817 let login_state = LoginInfo {
818818 user_id: response.user_id,
819819 };
820820 self.login_state = Some(login_state);