When the user changes their "primary" platform, we display a bot message. We also implemented a fix that resets the users primary platform back to Mattermost upon disconnect. This resulted in the bot message whenever /msteams disconnect was run.
This PRs as a check for the user being active and only showing the message if the user is active.
Summary
When the user changes their "primary" platform, we display a bot message. We also implemented a fix that resets the users primary platform back to Mattermost upon disconnect. This resulted in the bot message whenever
/msteams disconnect
was run.This PRs as a check for the user being active and only showing the message if the user is active.
Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-57975