1
0
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:
Bruno Windels
2019-06-26 15:47:59 +02:00
parent c75ca1c2d6
commit 2489180c47

View File

@@ -442,8 +442,8 @@ MatrixBaseApis.prototype.createRoom = function(options, callback) {
MatrixBaseApis.prototype.fetchRelations =
async function(roomId, eventId, relationType, eventType, opts) {
const queryParams = {};
if (opts.token) {
queryParams.from = opts.token;
if (opts.from) {
queryParams.from = opts.from;
}
const queryString = utils.encodeParams(queryParams);
const path = utils.encodeUri(