[BUG] [MGT-CHAT] Cannot create new chats threads for groups
Describe the bug We are not able to create a new chat to a group (o365 or security). Teams lets you select a group, but then it resolves the membership.
To Reproduce Steps to reproduce the behavior:
- Create a new chat.
- Type in the name of a group.
- Try to send
- See error
Expected behavior I would expect similar behavior to Teams.
Screenshots Here is an attempt to send to a security group:
Same error sending to an O365 group:
Environment (please complete the following information):
- OS: macOS Monterey 12.7.3
- Browser: Edge
- Framework: React
- Context: Web
- Version: MGT v4
- Provider: Msal2Provider
Additional context I am a MSFT FTE that can be reached on Teams at pelasne.
This would be an unsupported scenario for now.
This would be an unsupported scenario for now.
I still think there is something to be done: (a) block groups from showing in the list, or (b) throw an error to the end-user about it being unsupported. Right now it just mysteriously fails.
Would it be acceptable to expose the type?: PersonType property in NewChat so that consumers can configure the component to only show "people"?
This would allow consumers to prevent the silent error state, and would avoid the need for requesting the "Group.Read.All" permission.
I like this option. Thanks for suggesting @MattBillFred! Do you want to send a PR with the change? Thanks!