mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
use split off image recoding function for avatars
This commit is contained in:
@@ -217,7 +217,7 @@ impl Context {
|
||||
match value {
|
||||
Some(value) => {
|
||||
let blob = BlobObject::new_from_path(&self, value).await?;
|
||||
blob.recode_to_avatar_size(self)?;
|
||||
blob.recode_to_avatar_size(self).await?;
|
||||
self.sql
|
||||
.set_raw_config(self, key, Some(blob.as_name()))
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user