Skip to content

Add documentation for the interaction API - #16087

Merged
salmart-dev merged 2 commits into
masterfrom
feat/interaction-api
Nov 26, 2026
Merged

salmart-dev merged 2 commits into
masterfrom
feat/interaction-api

Conversation

@salmart-dev

@salmart-dev salmart-dev commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

☑️ Resolves

Adds documentation for the interaction API (RestrictInteractionEvent) introduced in NC 34.0.2

🖼️ Screenshots

screenshot-interaction-api

✅ Checklist

  • I have built the documentation locally and reviewed the output
  • Screenshots are included for visual changes
  • I have not moved or renamed pages (or added a redirect if I did)
  • I have run codespell or similar and addressed any spelling issues

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

🔍 Open preview →

📄 2 changed documentation pages

Last updated: Wed, 25 Nov 2026 12:12:04 GMT

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-opus-5-5

@artonge artonge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some of my comments are for the API itself, but in case there is still room for adjustment...

Comment on lines +248 to +252
* - ``Receivers\CircleReceiver``
- A team.
* - ``Receivers\RoomReceiver``
- A Talk conversation.
* - ``Receivers\DeckReceiver``

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't those be in their own apps?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You mean the classes themselves? If so, the problem with that would be that referencing classes from other apps becomes awkward as you have to hard-code the FQCN.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you have to hard-code the FQCN

I am not sure to understand what you mean

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moving those classes in apps means that anyone that wants to check if an event is restricted, needs to hard-code the fully qualified class name of the right receiver class, check if the class is available (as the app may be absent or disabled), if the class exists create an instance passing the right parameters (so it would also mean that in code we'd need to use stubs) and pass the instance to the event constructor. Having those definitions in server means no one needs to do any of this for "common" receivers.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is indeed easier to have it in server, but conceptually, it make more sense to have it in their own apps. Also, if an app want to specifically react to another app's recipient, then I think it is ok to go through those hoops.

But fine to keep it like that, we can improve down the line.

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev
salmart-dev requested a review from artonge November 25, 2026 11:42
@salmart-dev
salmart-dev merged commit 85ab6b4 into master Nov 26, 2026
27 checks passed
@salmart-dev
salmart-dev deleted the feat/interaction-api branch November 26, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants