From 4f7bb919cd09be326aba322568445bd59e73f7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Mon, 6 Sep 2021 19:53:32 +0200 Subject: [PATCH] Be more explicit about bindings fetching (#930) * Update _index.md * Update site/content/integrate/apps/bindings/_index.md Co-authored-by: Justine Geffen Co-authored-by: Justine Geffen --- site/content/integrate/apps/bindings/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/integrate/apps/bindings/_index.md b/site/content/integrate/apps/bindings/_index.md index 961de6d099..d645a01154 100644 --- a/site/content/integrate/apps/bindings/_index.md +++ b/site/content/integrate/apps/bindings/_index.md @@ -14,7 +14,7 @@ Bindings ([godoc](https://pkg.go.dev/github.com/mattermost/mattermost-plugin-app - The ID of the channel the user is currently focused on - The ID of the post the user is currently focused on (if applicable) -**Note:** When an OAuth2 process is completed, the client's bindings are automatically refreshed. For any other case where bindings need to be refreshed, the user will need to switch channels (which always fetches new bindings), or refresh the page. +**Note:** Bindings are fetched (and refreshed) on every channel switch. When the user moves to a different context (like opening a thread, or a post in a search view) new bindings may be fetched to provide the correct bindings for the thread/post context. Bindings are also fetched when an OAuth2 process is completed and when the application gets installed. One example bindings response is the one from the [Hello World!](https://github.com/mattermost/mattermost-plugin-apps/blob/master/examples/go/hello-world/bindings.json) app.