You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
rename pagination token option to from, more in line with cs api
This commit is contained in:
@@ -442,8 +442,8 @@ MatrixBaseApis.prototype.createRoom = function(options, callback) {
|
|||||||
MatrixBaseApis.prototype.fetchRelations =
|
MatrixBaseApis.prototype.fetchRelations =
|
||||||
async function(roomId, eventId, relationType, eventType, opts) {
|
async function(roomId, eventId, relationType, eventType, opts) {
|
||||||
const queryParams = {};
|
const queryParams = {};
|
||||||
if (opts.token) {
|
if (opts.from) {
|
||||||
queryParams.from = opts.token;
|
queryParams.from = opts.from;
|
||||||
}
|
}
|
||||||
const queryString = utils.encodeParams(queryParams);
|
const queryString = utils.encodeParams(queryParams);
|
||||||
const path = utils.encodeUri(
|
const path = utils.encodeUri(
|
||||||
|
|||||||
Reference in New Issue
Block a user