-
Notifications
You must be signed in to change notification settings - Fork 16
Add Reactions and TargetedMessage support to Core #338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
05225a2
81d6a09
c9f923b
f3cd66c
3b264c7
a282b01
9a559a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,8 @@ | |
| # local app settings files | ||
| appsettings.Local.json | ||
|
|
||
| .claude/ | ||
|
|
||
| # User-specific files | ||
| *.rsuser | ||
| *.suo | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| // This file is used by Code Analysis to maintain SuppressMessage | ||
| // attributes that are applied to this project. | ||
| // Project-level suppressions either have no target or are given | ||
| // a specific target and scoped to a namespace, type, member, etc. | ||
|
|
||
| using System.Diagnostics.CodeAnalysis; | ||
|
|
||
| [assembly: SuppressMessage("Performance", "SYSLIB1045:Convert to 'GeneratedRegexAttribute'.", Justification = "<Pending>")] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,7 @@ public TBuilder WithConversationReference(TActivity activity) | |
| WithChannelId(activity.ChannelId); | ||
| SetConversation(activity.Conversation); | ||
| SetFrom(activity.Recipient); | ||
| SetRecipient(activity.From); | ||
| //SetRecipient(activity.From); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to callout this important change. AFAIK Recipient was never required, so now making it explicit and allow to set the TM flag.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this supposed to be commented out? if so better to remove it?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I keep this commented while we decide what to do with the Recipient
|
||
|
|
||
| if (!string.IsNullOrEmpty(activity.Id)) | ||
| { | ||
|
|
@@ -156,8 +156,20 @@ public TBuilder WithFrom(ConversationAccount? from) | |
| /// <param name="recipient">The recipient account.</param> | ||
| /// <returns>The builder instance for chaining.</returns> | ||
| public TBuilder WithRecipient(ConversationAccount? recipient) | ||
| { | ||
| return WithRecipient(recipient, false); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Sets the recipient account information and optionally marks this as a targeted message. | ||
| /// </summary> | ||
| /// <param name="recipient">The recipient account.</param> | ||
| /// <param name="isTargeted">If true, marks this as a targeted message visible only to the specified recipient.</param> | ||
| /// <returns>The builder instance for chaining.</returns> | ||
| public TBuilder WithRecipient(ConversationAccount? recipient, bool isTargeted) | ||
| { | ||
| SetRecipient(recipient); | ||
| _activity.IsTargeted = isTargeted; | ||
| return (TBuilder)this; | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot will
JsonIgnoreignore when deserializing?@rido-min ignoring means we would have to manually support some how setting this field in BF SDK activity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my comment in #349 (comment)