From 3bb58be2b57464a6520c0b97fb8c5579e413d002 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 11 Dec 2019 03:07:32 +0100 Subject: [PATCH] add missing delete header --- src/mimefactory.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mimefactory.rs b/src/mimefactory.rs index 91641bc78..c7b8a2d1b 100644 --- a/src/mimefactory.rs +++ b/src/mimefactory.rs @@ -693,6 +693,12 @@ impl<'a, 'b> MimeFactory<'a, 'b> { "Chat-Content".to_string(), "group-avatar-changed".to_string(), )); + if grpimage.is_none() { + protected_headers.push(Header::new( + "Chat-Group-Avatar".to_string(), + "0".to_string(), + )); + } add_compatibility_header = true; } _ => {}