mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
allow stickers with gif-images
This commit is contained in:
@@ -398,7 +398,7 @@ impl MimeMessage {
|
|||||||
if part.typ == Viewtype::Audio && self.get(HeaderDef::ChatVoiceMessage).is_some() {
|
if part.typ == Viewtype::Audio && self.get(HeaderDef::ChatVoiceMessage).is_some() {
|
||||||
part.typ = Viewtype::Voice;
|
part.typ = Viewtype::Voice;
|
||||||
}
|
}
|
||||||
if part.typ == Viewtype::Image {
|
if part.typ == Viewtype::Image || part.typ == Viewtype::Gif {
|
||||||
if let Some(value) = self.get(HeaderDef::ChatContent) {
|
if let Some(value) = self.get(HeaderDef::ChatContent) {
|
||||||
if value == "sticker" {
|
if value == "sticker" {
|
||||||
part.typ = Viewtype::Sticker;
|
part.typ = Viewtype::Sticker;
|
||||||
|
|||||||
Reference in New Issue
Block a user