[geary/wip/730682-refine-convo-list: 9/11] Fix flagging individual unread/starred convos flagging all messages.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/730682-refine-convo-list: 9/11] Fix flagging individual unread/starred convos flagging all messages.
- Date: Fri, 5 Jan 2018 04:21:21 +0000 (UTC)
commit b697dfcd7bb6182755ae8d0e37e84ac418ba27c9
Author: Michael James Gratton <mike vee net>
Date: Fri Jan 5 10:55:56 2018 +1100
Fix flagging individual unread/starred convos flagging all messages.
src/client/components/main-window.vala | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/client/components/main-window.vala b/src/client/components/main-window.vala
index f295e0a..2226276 100644
--- a/src/client/components/main-window.vala
+++ b/src/client/components/main-window.vala
@@ -1141,8 +1141,11 @@ public class MainWindow : Gtk.ApplicationWindow {
Geary.App.Conversation? target = variant_to_conversation(param);
if (target != null) {
+ Geary.Email latest = target.get_latest_sent_email(
+ Geary.App.Conversation.Location.IN_FOLDER_OUT_OF_FOLDER
+ );
this.application.controller.mark_email.begin(
- target.get_email_ids(), flags, null,
+ Geary.Collection.new_unary_linked_list(latest.id), flags, null,
(obj, ret) => {
try {
this.application.controller.mark_email.end(ret);
@@ -1160,8 +1163,11 @@ public class MainWindow : Gtk.ApplicationWindow {
Geary.App.Conversation? target = variant_to_conversation(param);
if (target != null) {
+ Geary.Email latest = target.get_latest_sent_email(
+ Geary.App.Conversation.Location.IN_FOLDER_OUT_OF_FOLDER
+ );
this.application.controller.mark_email.begin(
- target.get_email_ids(), flags, null,
+ Geary.Collection.new_unary_linked_list(latest.id), flags, null,
(obj, ret) => {
try {
this.application.controller.mark_email.end(ret);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]