Port: Set TeamsNotifyUser alert to opposite of alert_in_meeting #2185
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #223
Description
Porting changes from microsoft/botbuilder-dotnet#6136
The logic for
teams_notify_user
helper method is incorrect. It should set either alertInMeeting to true, or alert to true, but not both.botbuilder-python/libraries/botbuilder-core/botbuilder/core/teams/teams_activity_extensions.py
Lines 74 to 75 in 3e76e54
Specific Changes
Testing
The following image shows the related unit test passing.
![image](https://private-user-images.githubusercontent.com/164224646/381567820-29fd1611-342e-406a-b520-7cb5ff32db54.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MDkxMTIsIm5iZiI6MTczOTUwODgxMiwicGF0aCI6Ii8xNjQyMjQ2NDYvMzgxNTY3ODIwLTI5ZmQxNjExLTM0MmUtNDA2YS1iNTIwLTdjYjVmZjMyZGI1NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwNDUzMzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01YjhmNTI1MWVkMzZkZjFiZDA0OTE3Njg0YTUxNzk5YWQ5MTcyNzc1MzUwNDdmMWFkZmEzMDg0YWUzOGE4OTM2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.giMzHv3GWuH1aB-dBAv3jqwmu99QcisiI08amgBvrlA)