Skip to content

Make JoinRule enum scoped#954

Merged
KitsuneRal merged 1 commit intoquotient-im:devfrom
redstrate:work/redstrate/fix-joinrule-scoping
Feb 6, 2026
Merged

Make JoinRule enum scoped#954
KitsuneRal merged 1 commit intoquotient-im:devfrom
redstrate:work/redstrate/fix-joinrule-scoping

Conversation

@redstrate
Copy link
Copy Markdown
Collaborator

This fixes a nasty issue in the QML module, because this wasn't scoped it was only accessible at the name level (e.g. Quotient.Invite) There were various other issues because of the similar names between Membership and other enums, so I stuck RegisterEnumClassesUnscoped on the namespace too.

This does consitute an API change, but clients should be able to make this backwards-compatible with older libquotient versions.

TobiasFella
TobiasFella previously approved these changes Feb 4, 2026
Copy link
Copy Markdown
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

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

Overall totally agree - with one suggestion.

Comment thread Quotient/room.cpp Outdated
This fixes a nasty issue in the QML module, because this wasn't scoped
it was only accessible at the name level (e.g. Quotient.Invite) There
were various other issues because of the similar names between
Membership and other enums, so I stuck RegisterEnumClassesUnscoped on
the namespace too.

This does consitute an API change, but clients should be able to make
this backwards-compatible with older libquotient versions.
@KitsuneRal KitsuneRal merged commit 7858ba2 into quotient-im:dev Feb 6, 2026
@github-project-automation github-project-automation Bot moved this from In work to 0.10 - Done in libQuotient 1 Feb 6, 2026
@KitsuneRal KitsuneRal added enhancement A feature or change request for the library building/packaging Issues with CMake files or packaging labels Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

building/packaging Issues with CMake files or packaging enhancement A feature or change request for the library

Projects

Status: 0.10 - Done

Development

Successfully merging this pull request may close these issues.

3 participants