share group image on group creation, fixes #602

This commit is contained in:
B. Petersen
2019-12-10 23:35:37 +01:00
committed by holger krekel
parent ab12a4eb39
commit ff29b84146
3 changed files with 19 additions and 0 deletions

View File

@@ -314,6 +314,7 @@ impl Chat {
|| self.typ == Chattype::VerifiedGroup
&& self.param.get_int(Param::Unpromoted).unwrap_or_default() == 1
{
msg.param.set_int(Param::AttachGroupImage, 1);
self.param.remove(Param::Unpromoted);
self.update_param(context)?;
}