Rename add_selfavatar into attach_selfavatar to match field name

This commit is contained in:
Alexander Krotov
2020-02-15 21:22:25 +03:00
parent ced73ffb14
commit 2753883687

View File

@@ -68,7 +68,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
pub fn from_msg(
context: &'a Context,
msg: &'b Message,
add_selfavatar: bool,
attach_selfavatar: bool,
) -> Result<MimeFactory<'a, 'b>, Error> {
let chat = Chat::load_from_db(context, msg.chat_id)?;
@@ -156,7 +156,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
references,
req_mdn,
last_added_location_id: 0,
attach_selfavatar: add_selfavatar,
attach_selfavatar,
context,
};
Ok(factory)