diff --git a/src/imp.rs b/src/imp.rs index 87c430e..ace6f4a 100644 --- a/src/imp.rs +++ b/src/imp.rs @@ -168,10 +168,10 @@ impl Imp { let acl: ACL = serde_json::from_str(&data["accessControlList"]).expect("Error parsing conversation"); - let conversatio_id: i32 = data["ConversationID"].parse::().unwrap(); + let conversation_id: i32 = data["ConversationID"].parse::().unwrap(); let conversation = Conversation { handle: convo_handle.clone(), - identifier: conversatio_id, + identifier: conversation_id, name: data["nick"].to_string(), status: ConnectionState::new(&data["status"]), blocked: data["blocked"] == "true", @@ -187,8 +187,8 @@ impl Imp { profile .conversations .insert(conversation.identifier, conversation); - handler.on_new_contact(self.cwtch.as_ref(), profile, conversatio_id); - handler.on_contact_online(self.cwtch.as_ref(), profile, conversatio_id); + handler.on_new_contact(self.cwtch.as_ref(), profile, conversation_id); + handler.on_contact_online(self.cwtch.as_ref(), profile, conversation_id); } None => (), };