[geary/wip/131-sent-mail: 49/52] Fix missing outbox messages body preview in ConversationViewer
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/131-sent-mail: 49/52] Fix missing outbox messages body preview in ConversationViewer
- Date: Mon, 26 Aug 2019 03:27:41 +0000 (UTC)
commit b187563933698204d1c137a1d32e034f9ba3d595
Author: Michael Gratton <mike vee net>
Date: Thu Aug 22 22:37:15 2019 +1000
Fix missing outbox messages body preview in ConversationViewer
src/engine/rfc822/rfc822-message.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/engine/rfc822/rfc822-message.vala b/src/engine/rfc822/rfc822-message.vala
index c530ea88..f600c929 100644
--- a/src/engine/rfc822/rfc822-message.vala
+++ b/src/engine/rfc822/rfc822-message.vala
@@ -494,6 +494,10 @@ public class Geary.RFC822.Message : BaseObject, EmailHeaderSet {
email.set_message_subject(subject);
email.set_message_body(new Geary.RFC822.Text(new Geary.Memory.OffsetBuffer(
body_buffer, body_offset)));
+ string preview = get_preview();
+ if (preview != "") {
+ email.set_message_preview(new PreviewText.from_string(preview));
+ }
return email;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]