⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@luflow
Copy link
Contributor

@luflow luflow commented Jan 24, 2026

Adds compatibility with nextcloud/spreed#16835 which splits the combined CHAT permission into separate CHAT (128) and REACT (256) permissions.

This enables "announcement channels" where only moderators can post messages, but all users can still react.

Changes:

  • Add REACT (256) permission constant to ParticipantPermissions
  • Add hasReactPermission() method with backward compatibility fallback
  • Update MessageActionsDialog to use react permission for emoji bar
  • Add permission check in onClickReaction() for toggling reactions
  • Add unit tests for new permission handling

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@AndyScherzinger AndyScherzinger added enhancement New feature or request 3. to review Waiting for reviews labels Jan 24, 2026
@luflow luflow force-pushed the feature/split-chat-and-reaction-permission branch from 373af2f to 294c178 Compare January 26, 2026 12:31
@luflow
Copy link
Contributor Author

luflow commented Jan 26, 2026

@AndyScherzinger just updated this branch based on feedback in spreed-PR - also wrote a small migration guide that covers all changes to be more understandable :) https://github.com/luflow/spreed/blob/93bedef92873edbf7a4ae28730c0d514a1cd2f97/docs/react-permission-integration.md

@mahibi
Copy link
Collaborator

mahibi commented Jan 27, 2026

thank you @luflow , great idea 👍
i will review today

@mahibi
Copy link
Collaborator

mahibi commented Jan 29, 2026

i will come back to this when the server PR is merged ;)

@luflow luflow force-pushed the feature/split-chat-and-reaction-permission branch 2 times, most recently from 612e90a to 18629f7 Compare January 31, 2026 16:01
Adds compatibility with nextcloud/spreed#16835 which splits the combined
CHAT permission into separate CHAT (128) and REACT (256) permissions.

This enables "announcement channels" where only moderators can post
messages, but all users can still react.

Changes:
- Add REACT (256) permission constant to ParticipantPermissions
- Add hasReactPermission() method with backward compatibility fallback
- Update MessageActionsDialog to use react permission for emoji bar
- Add permission check in onClickReaction() for toggling reactions
- Add unit tests for new permission handling

Signed-off-by: Florian Ludwig <[email protected]>
- Add REACT_PERMISSION feature to SpreedFeatures enum
- Update hasReactPermission() to check react-permission capability first
- Fall back to chat-permission/CHAT bit for older servers
- Expand unit tests for all capability scenarios

Signed-off-by: Florian Ludwig <[email protected]>
Servers that support react-permission also support chat-permission since
it is an older capability. Update test setup to reflect this realistic
server configuration.

Signed-off-by: Florian Ludwig <[email protected]>
@luflow luflow force-pushed the feature/split-chat-and-reaction-permission branch from 4661e53 to 51567c6 Compare February 4, 2026 18:36
Copy link
Collaborator

@mahibi mahibi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @luflow 👍 well done 🥇

@mahibi mahibi merged commit 8d93e57 into nextcloud:master Feb 6, 2026
14 of 17 checks passed
@mahibi mahibi added this to the 23.1.0 milestone Feb 6, 2026
@mahibi
Copy link
Collaborator

mahibi commented Feb 6, 2026

just a reminder to myself:

if users complain that nothing happens when they try to react, ask them to update the app (this PR needs to be included in the release of course)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature or request feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants