recode group- and user-avatar to 192x192 pixel

This commit is contained in:
B. Petersen
2019-12-15 21:17:05 +01:00
committed by holger krekel
parent 9fc556864e
commit a5f949c4e2
4 changed files with 44 additions and 0 deletions

View File

@@ -1883,6 +1883,7 @@ pub fn set_chat_profile_image(
_ => Err(err),
},
)?;
image_blob.recode_to_avatar_size(context)?;
chat.param.set(Param::ProfileImage, image_blob.as_name());
msg.param.set(Param::Arg, image_blob.as_name());
msg.text = Some(context.stock_system_msg(