mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-26 13:17:29 -05:00
* Add OnLicenseChanged plugin hook Notify plugins when the server license changes via SetLicense. Returning an error does not roll back the license change, but deactivates the plugin and marks it failed to stay running. Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com> * Drop error return from OnLicenseChanged hook Match OnCloudLimitsUpdated: fire-and-forget notification with no plugin deactivation on failure. Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com> * Set OnLicenseChanged minimum server version to 12.0 Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com> * Document OnLicenseChanged startup behavior in hook godoc Clarify that the hook is not invoked for the initial license load and that plugins should use API.GetLicense() from OnActivate instead. Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com>