mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
remove extra fields from db, use certificate as storage
This commit is contained in:
parent
a49ec2b7b4
commit
755a704433
5 changed files with 35 additions and 87 deletions
|
|
@ -6,7 +6,6 @@ use database::Database;
|
|||
use error::Error;
|
||||
use gemini::Gemini;
|
||||
|
||||
use gtk::glib::DateTime;
|
||||
use sqlite::{Connection, Transaction};
|
||||
use std::{rc::Rc, sync::RwLock};
|
||||
|
||||
|
|
@ -27,7 +26,7 @@ impl Identity {
|
|||
// Get active identity set for profile or create new one
|
||||
let profile_identity_id = Rc::new(match database.active() {
|
||||
Some(identity) => identity.id,
|
||||
None => match database.add(profile_id, true, DateTime::now_local().unwrap(), None) {
|
||||
None => match database.add(profile_id, true) {
|
||||
Ok(id) => id,
|
||||
Err(_) => return Err(Error::Database),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue