mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
use tri-state ImageAction instead of Option<Option>
This commit is contained in:
committed by
holger krekel
parent
c62532a665
commit
c3fd0889e2
@@ -238,8 +238,8 @@ pub fn dc_receive_imf(
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(profile_image) = mime_parser.profile_image {
|
||||
match contact::set_profile_image(&context, from_id, profile_image) {
|
||||
if mime_parser.profile_image != ImageAction::None {
|
||||
match contact::set_profile_image(&context, from_id, mime_parser.profile_image) {
|
||||
Ok(()) => {
|
||||
context.call_cb(Event::ChatModified(chat_id));
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user