mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 08:56:29 +03:00
Rename Param::MessageId into Param::MsgId
MsgId refers to database ID, same as crate::message::MsgId newtype.
This commit is contained in:
@@ -119,7 +119,7 @@ pub enum Param {
|
||||
GroupName = b'g',
|
||||
|
||||
/// For MDN-sending job
|
||||
MessageId = b'I',
|
||||
MsgId = b'I',
|
||||
}
|
||||
|
||||
/// Possible values for `Param::ForcePlaintext`.
|
||||
@@ -317,7 +317,7 @@ impl Params {
|
||||
}
|
||||
|
||||
pub fn get_msg_id(&self) -> Option<MsgId> {
|
||||
self.get(Param::MessageId)
|
||||
self.get(Param::MsgId)
|
||||
.and_then(|x| x.parse::<u32>().ok())
|
||||
.map(MsgId::new)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user