[geary/wip/131-sent-mail: 11/14] 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: 11/14] Fix missing outbox messages body preview in ConversationViewer
- Date: Mon, 26 Aug 2019 03:33:49 +0000 (UTC)
commit 7b53137c8f75e8a279fefa6618a1192ae8a6528a
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]