← All plugin changes

sm-chatchannels-plugin 0.1.1

v0.1.11 min readPlugins

Changed

  • Pinning is a manage action. Pinning and unpinning a channel message now needs CanManageContext, or a true answer from the host's optional contracts.PinPolicy (CanPin). The plugin looks for the policy on the access resolver the host already installs, so hosts compile unchanged. Members who only have channel access can still read the pins.
  • New ChannelService.CanPinInChannel, so a host or frontend can decide whether to show the pin action.

Fixed

  • A pinned message must be a live message of the channel's own conversation. Pins of messages from other conversations, unknown or deleted messages answer 404.

Upgrading

A host whose CanManageContext is false for ordinary members, and which wants them to keep pinning, implements CanPin on its access resolver (for example answering with CanAccessContext).

Subscribe via RSS