From 355a95c424d72b3aca0c5e1cb1cf75ce09d42cd6 Mon Sep 17 00:00:00 2001 From: Simon Oxtoby Date: Mon, 4 May 2020 09:42:41 +1000 Subject: [PATCH] Adding DefaultToCurrentConversation to conversation select menus --- SlackNet/Blocks/ConversationMultiSelectMenu.cs | 6 ++++++ SlackNet/Blocks/ConversationSelectMenu.cs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/SlackNet/Blocks/ConversationMultiSelectMenu.cs b/SlackNet/Blocks/ConversationMultiSelectMenu.cs index f9e8e35..3dda4fc 100644 --- a/SlackNet/Blocks/ConversationMultiSelectMenu.cs +++ b/SlackNet/Blocks/ConversationMultiSelectMenu.cs @@ -24,6 +24,12 @@ public ConversationMultiSelectMenu() : base("multi_conversations_select") { } /// A object that reduces the list of available conversations using the specified criteria. /// public ConversationFilter Filter { get; set; } + + /// + /// Pre-populates the select menu with the conversation that the user was viewing when they opened the modal, if available. + /// If is also supplied, it will be ignored. + /// + public bool DefaultToCurrentConversation { get; set; } } [SlackType("multi_conversations_select")] diff --git a/SlackNet/Blocks/ConversationSelectMenu.cs b/SlackNet/Blocks/ConversationSelectMenu.cs index 93cac76..89e8798 100644 --- a/SlackNet/Blocks/ConversationSelectMenu.cs +++ b/SlackNet/Blocks/ConversationSelectMenu.cs @@ -17,6 +17,12 @@ public ConversationSelectMenu() : base("conversations_select") { } /// A object that reduces the list of available conversations using the specified criteria. /// public ConversationFilter Filter { get; set; } + + /// + /// Pre-populates the select menu with the conversation that the user was viewing when they opened the modal, if available. + /// If is also supplied, it will be ignored. + /// + public bool DefaultToCurrentConversation { get; set; } } [SlackType("conversations_select")]