GMAC
GMAC

Reputation: 868

Is there a way to dynamically change the "commands" in manifest from the code in MS Message Extension

I have a message extension running on Microsoft Teams

So, here in the image below, I am signed out

enter image description here

My question here is how I can update the Sign Out to Sign In?

Is there a way to add the new command as Sign In from the code and remove Sign Out?

Upvotes: 0

Views: 129

Answers (1)

Oleksa
Oleksa

Reputation: 646

As far as i know you can't do that without the actually updating the app. However you can add command "Settings" that pops a task window and inside that window you can show "Log in" or "Log out" based on the user's auth state. Alternatively you can add bot commands "/signin" and "/signout" and control your auth state using these commands. Hope this helped.

Upvotes: 1

Related Questions