Skip to content
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

add at mention removal code and used it in inspection #1032

Merged
merged 5 commits into from
Jul 3, 2019

Conversation

johnataylor
Copy link
Member

JavaScript equivalent of C# microsoft/botbuilder-dotnet#2060

Unit tests included - however this needs more manual testing with Teams tomorrow. Specifically need to validate the exact shape of the activity coming in from Teams regarding the entities that carry additional at mention metadata.

I think the at mention removal code looks a little sketchy (looks like it could stamp on data accidentally?) but for now this code is exactly the same as the C# right down to the use of look-ahead/behind regex.

@johnataylor
Copy link
Member Author

Note I haven't included update package-lock files here.

@cleemullins
Copy link
Contributor

Holding off Merging, as the comment indicates more testing is required.

@johnataylor
Copy link
Member Author

tested end to end with Teams - found and fixed one issue see later commits

* const mentions = TurnContext.getMentions(context.request);
* ```
* @param activity The activity to alter the text on
* @param id The recipient id of the at mention
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This docstring is incorrect

@johnataylor johnataylor merged commit 9105d5c into master Jul 3, 2019
@johnataylor johnataylor deleted the johtaylo/atmention branch July 3, 2019 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants