Skip to content
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

Relations endpoint support #967

Merged
merged 6 commits into from
Jun 26, 2019
Merged

Relations endpoint support #967

merged 6 commits into from
Jun 26, 2019

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Jun 26, 2019

@bwindels bwindels requested a review from a team June 26, 2019 10:10
@jryans jryans requested review from jryans and removed request for a team June 26, 2019 12:23
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Looks good generally, but we should add docs first.

@@ -439,6 +439,27 @@ MatrixBaseApis.prototype.createRoom = function(options, callback) {
);
};

MatrixBaseApis.prototype.fetchRelations =
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add function docs like other functions here.

src/base-apis.js Outdated
async function(roomId, eventId, relationType, eventType, opts) {
const queryParams = {};
if (opts.token) {
queryParams.from = opts.token;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume the name token matches other APIs?

src/base-apis.js Outdated
$relationType: relationType,
$eventType: eventType,
});
// valid options include: room_alias_name, visibility, invite
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this means? Options for what...?

@@ -3965,6 +3965,20 @@ MatrixClient.prototype.getCanResetTimelineCallback = function() {
return this._canResetTimelineCallback;
};

MatrixClient.prototype.relations =
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should also have function docs like others here.

@bwindels bwindels requested a review from jryans June 26, 2019 13:52
@bwindels
Copy link
Contributor Author

Sorry for the messy initial state, should be better now.

Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks! 😁

@bwindels bwindels merged commit f293da5 into develop Jun 26, 2019
@t3chguy t3chguy deleted the bwindels/edit-history branch May 10, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants