Skip to content

Commit

Permalink
Adding DefaultToCurrentConversation to conversation select menus
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Oxtoby committed May 3, 2020
1 parent 323dba4 commit 355a95c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SlackNet/Blocks/ConversationMultiSelectMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ public ConversationMultiSelectMenu() : base("multi_conversations_select") { }
/// A <see cref="ConversationFilter"/> object that reduces the list of available conversations using the specified criteria.
/// </summary>
public ConversationFilter Filter { get; set; }

/// <summary>
/// Pre-populates the select menu with the conversation that the user was viewing when they opened the modal, if available.
/// If <see cref="InitialConversations"/> is also supplied, it will be ignored.
/// </summary>
public bool DefaultToCurrentConversation { get; set; }
}

[SlackType("multi_conversations_select")]
Expand Down
6 changes: 6 additions & 0 deletions SlackNet/Blocks/ConversationSelectMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ public ConversationSelectMenu() : base("conversations_select") { }
/// A <see cref="ConversationFilter"/> object that reduces the list of available conversations using the specified criteria.
/// </summary>
public ConversationFilter Filter { get; set; }

/// <summary>
/// Pre-populates the select menu with the conversation that the user was viewing when they opened the modal, if available.
/// If <see cref="InitialConversation"/> is also supplied, it will be ignored.
/// </summary>
public bool DefaultToCurrentConversation { get; set; }
}

[SlackType("conversations_select")]
Expand Down

0 comments on commit 355a95c

Please sign in to comment.