mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 13:26:38 +03:00
Start extracting the logic for getting the last n messages into its own function
This commit is contained in:
@@ -7,7 +7,7 @@ use std::time::Duration;
|
||||
|
||||
use anyhow::{bail, ensure, Result};
|
||||
use deltachat::chat::{
|
||||
self, Chat, ChatId, ChatItem, ChatVisibility, GetChatMsgsOptions, MuteDuration,
|
||||
self, Chat, ChatId, ChatItem, ChatVisibility, MessageListOptions, MuteDuration,
|
||||
};
|
||||
use deltachat::chatlist::*;
|
||||
use deltachat::constants::*;
|
||||
@@ -624,9 +624,9 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
||||
let msglist = chat::get_chat_msgs_ex(
|
||||
&context,
|
||||
sel_chat.get_id(),
|
||||
GetChatMsgsOptions {
|
||||
MessageListOptions {
|
||||
info_only: false,
|
||||
add_daymarker: true,
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user