wrap payloads to json-object on the wire

This commit is contained in:
B. Petersen
2021-12-12 21:52:33 +01:00
committed by bjoern
parent de20e4c9dd
commit de7706f622
2 changed files with 69 additions and 24 deletions

View File

@@ -1163,7 +1163,9 @@ impl<'a> MimeFactory<'a> {
let json = self.msg.param.get(Param::Arg).unwrap_or_default();
parts.push(context.build_status_update_part(json).await);
} else if self.msg.viewtype == Viewtype::W30 {
let json = context.get_w30_status_updates(self.msg.id, None).await?;
let json = context
.get_w30_status_updates_with_format(self.msg.id, None, true)
.await?;
if json != "[]" {
parts.push(context.build_status_update_part(&json).await);
}