mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +03:00
Do not emit ChatModified event when user avatar is updated
This commit is contained in:
@@ -290,7 +290,7 @@ pub(crate) async fn receive_imf_inner(
|
|||||||
.update_contacts_timestamp(from_id, Param::AvatarTimestamp, sent_timestamp)
|
.update_contacts_timestamp(from_id, Param::AvatarTimestamp, sent_timestamp)
|
||||||
.await?
|
.await?
|
||||||
{
|
{
|
||||||
match contact::set_profile_image(
|
if let Err(err) = contact::set_profile_image(
|
||||||
context,
|
context,
|
||||||
from_id,
|
from_id,
|
||||||
avatar_action,
|
avatar_action,
|
||||||
@@ -298,15 +298,10 @@ pub(crate) async fn receive_imf_inner(
|
|||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(()) => {
|
warn!(
|
||||||
context.emit_event(EventType::ChatModified(chat_id));
|
context,
|
||||||
}
|
"receive_imf cannot update profile image: {:#}", err
|
||||||
Err(err) => {
|
);
|
||||||
warn!(
|
|
||||||
context,
|
|
||||||
"receive_imf cannot update profile image: {:#}", err
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user