]> granicus.if.org Git - neomutt/commitdiff
Support group-chat-reply in the index
authorPietro Cerutti <gahr@gahr.ch>
Wed, 17 Apr 2019 09:40:45 +0000 (09:40 +0000)
committerRichard Russon <rich@flatcap.org>
Wed, 17 Apr 2019 13:15:58 +0000 (14:15 +0100)
Fixes #1654

index.c

diff --git a/index.c b/index.c
index b0eb555f79e474c409397fb70a67f6d59a8e6ba1..2140c6cfd981208369fa80f83081ae7eb4cf7583 100644 (file)
--- a/index.c
+++ b/index.c
@@ -3140,7 +3140,13 @@ int mutt_index_menu(void)
         break;
 
       case OP_GROUP_REPLY:
+      case OP_GROUP_CHAT_REPLY:
       {
+        SendFlags replyFlags = SEND_REPLY;
+        if (op == OP_GROUP_REPLY)
+          replyFlags |= SEND_GROUP_REPLY;
+        else
+          replyFlags |= SEND_GROUP_CHAT_REPLY;
         if (!prereq(Context, menu, CHECK_IN_MAILBOX | CHECK_MSGCOUNT | CHECK_VISIBLE | CHECK_ATTACH))
           break;
         struct EmailList el = STAILQ_HEAD_INITIALIZER(el);
@@ -3149,7 +3155,7 @@ int mutt_index_menu(void)
         {
           mutt_check_traditional_pgp(&el, &menu->redraw);
         }
-        ci_send_message(SEND_REPLY | SEND_GROUP_REPLY, NULL, NULL, Context, &el);
+        ci_send_message(replyFlags, NULL, NULL, Context, &el);
         el_free(&el);
         menu->redraw = REDRAW_FULL;
         break;