daemon: adds conversation list limit, fixes auth saving in db auth store
This commit is contained in:
@@ -111,7 +111,7 @@ impl DaemonCli {
|
||||
}
|
||||
|
||||
pub async fn print_conversations(&mut self) -> Result<()> {
|
||||
let conversations = KordophoneRepository::get_conversations(&self.proxy())?;
|
||||
let conversations = KordophoneRepository::get_conversations(&self.proxy(), 100, 0)?;
|
||||
println!("Number of conversations: {}", conversations.len());
|
||||
|
||||
for conversation in conversations {
|
||||
|
||||
@@ -111,7 +111,7 @@ impl DbClient {
|
||||
|
||||
pub async fn print_conversations(&mut self) -> Result<()> {
|
||||
let all_conversations = self.database.with_repository(|repository| {
|
||||
repository.all_conversations()
|
||||
repository.all_conversations(i32::MAX, 0)
|
||||
}).await?;
|
||||
|
||||
println!("{} Conversations: ", all_conversations.len());
|
||||
|
||||
Reference in New Issue
Block a user