mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
use Chat-User-Avatar and Chat-Group-Avatar
we change the name on the wire as the old Chat-Group-Image header could not be used on random mails, it was the marker for a "Changed" message, if we would keep this names, things will fail for exising installations as messages are dropped and a "Group image changed" message is shown instead.
This commit is contained in:
committed by
holger krekel
parent
7c3d8356c4
commit
d681fa6cba
@@ -895,13 +895,11 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
|
||||
Some(path) => match build_selfavatar_file(context, path) {
|
||||
Ok((part, filename)) => {
|
||||
parts.push(part);
|
||||
protected_headers.push(Header::new("Chat-Profile-Image".into(), filename))
|
||||
protected_headers.push(Header::new("Chat-User-Avatar".into(), filename))
|
||||
}
|
||||
Err(err) => warn!(context, "mimefactory: cannot attach selfavatar: {}", err),
|
||||
},
|
||||
None => {
|
||||
protected_headers.push(Header::new("Chat-Profile-Image".into(), "0".into()))
|
||||
}
|
||||
None => protected_headers.push(Header::new("Chat-User-Avatar".into(), "0".into())),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user