-
-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MatrixRTC: refactor MatrixRTCSession MemberManager API #4610
MatrixRTC: refactor MatrixRTCSession MemberManager API #4610
Conversation
b292450
to
5946ff4
Compare
5946ff4
to
99922e4
Compare
99922e4
to
df69930
Compare
094b0f4
to
e31e1cb
Compare
df69930
to
5873e3a
Compare
9daacc1
to
24c8eb1
Compare
5873e3a
to
8231f75
Compare
8231f75
to
eefe219
Compare
eefe219
to
7ce0b77
Compare
7ce0b77
to
9b6bc3f
Compare
…embershipsUpdate This makes it more clear that we do not talk about our own membership but all memberships in the session
- add comments and interface how to test this class. - sort methods by public/private - make triggerCallMembershipEventUpdate private
9b6bc3f
to
ce420c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The naming doesn't feel quite right here either.
We have an abstract class called MembershipManagerInterface
.
Its an abstract class we use as an interface (but need to declare it as an abstract class to also have the constructor) |
@hughns we might want to make this an interface and do not care about the constructor. |
The actual constructor of the class now contains the `Pick` to define what it needs from the client.
5a23b28
to
00d4e72
Compare
00d4e72
to
c798a1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The revised naming all looks good to me now 👍.
I've added a couple of suggested changes to tidy up some comments.
Co-authored-by: Hugh Nimmo-Smith <[email protected]>
Co-authored-by: Hugh Nimmo-Smith <[email protected]>
They look like plain improvements so I merged both suggestions. |
Can be reviewed commit by commit.
This changes the api between the session and the
MembershipManager
.It also makes sure that the tests are only using this api and nothing specific to the current
MembershipManager
implementation.It is planned to do the same thing with the encryption logic of the session.
This allows to exchange the
MembershipManager
with a different implementation.Checklist
public
/exported
symbols have accurate TSDoc documentation.