You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Fix legitimate JSDoc errors
This commit is contained in:
@@ -439,6 +439,7 @@ MatrixBaseApis.prototype.roomInitialSync = function(roomId, limit, callback) {
|
|||||||
// =========================
|
// =========================
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param {Object} options Options for this request
|
||||||
* @param {string} options.server The remote server to query for the room list.
|
* @param {string} options.server The remote server to query for the room list.
|
||||||
* Optional. If unspecified, get the local home
|
* Optional. If unspecified, get the local home
|
||||||
* server's public room list.
|
* server's public room list.
|
||||||
@@ -1022,7 +1023,7 @@ MatrixBaseApis.prototype.downloadKeysForUsers = function(userIds, callback) {
|
|||||||
/**
|
/**
|
||||||
* Claim one-time keys
|
* Claim one-time keys
|
||||||
*
|
*
|
||||||
* @param {string[][]} devices a list of [userId, deviceId] pairs
|
* @param {string[]} devices a list of [userId, deviceId] pairs
|
||||||
*
|
*
|
||||||
* @param {string} [key_algorithm = signed_curve25519] desired key type
|
* @param {string} [key_algorithm = signed_curve25519] desired key type
|
||||||
*
|
*
|
||||||
|
@@ -542,7 +542,7 @@ MatrixClient.prototype.getUsers = function() {
|
|||||||
/**
|
/**
|
||||||
* Set account data event for the current user.
|
* Set account data event for the current user.
|
||||||
* @param {string} eventType The event type
|
* @param {string} eventType The event type
|
||||||
* @param {Object} content the contents object for the event
|
* @param {Object} contents the contents object for the event
|
||||||
* @param {module:client.callback} callback Optional.
|
* @param {module:client.callback} callback Optional.
|
||||||
* @return {module:client.Promise} Resolves: TODO
|
* @return {module:client.Promise} Resolves: TODO
|
||||||
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
||||||
|
@@ -130,7 +130,7 @@ module.exports.DecryptionAlgorithm = DecryptionAlgorithm;
|
|||||||
*
|
*
|
||||||
* @method module:crypto/algorithms/base.DecryptionAlgorithm#onRoomKeyEvent
|
* @method module:crypto/algorithms/base.DecryptionAlgorithm#onRoomKeyEvent
|
||||||
*
|
*
|
||||||
* @param {module:models/event.MatrixEvent} event key event
|
* @param {module:models/event.MatrixEvent} params event key event
|
||||||
*/
|
*/
|
||||||
DecryptionAlgorithm.prototype.onRoomKeyEvent = function(params) {
|
DecryptionAlgorithm.prototype.onRoomKeyEvent = function(params) {
|
||||||
// ignore by default
|
// ignore by default
|
||||||
|
@@ -150,7 +150,7 @@ utils.inherits(MegolmEncryption, base.EncryptionAlgorithm);
|
|||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*
|
*
|
||||||
* @param {module:models/room} room
|
* @param {Object} devicesInRoom The devices in this room, indexed by user ID
|
||||||
*
|
*
|
||||||
* @return {module:client.Promise} Promise which resolves to the
|
* @return {module:client.Promise} Promise which resolves to the
|
||||||
* OutboundSessionInfo when setup is complete.
|
* OutboundSessionInfo when setup is complete.
|
||||||
@@ -378,7 +378,7 @@ MegolmEncryption.prototype._shareKeyWithDevices = function(session, devicesByUse
|
|||||||
*
|
*
|
||||||
* @param {module:models/room} room
|
* @param {module:models/room} room
|
||||||
* @param {string} eventType
|
* @param {string} eventType
|
||||||
* @param {object} plaintext event content
|
* @param {object} content plaintext event content
|
||||||
*
|
*
|
||||||
* @return {module:client.Promise} Promise which resolves to the new event body
|
* @return {module:client.Promise} Promise which resolves to the new event body
|
||||||
*/
|
*/
|
||||||
@@ -475,9 +475,6 @@ utils.inherits(MegolmDecryption, base.DecryptionAlgorithm);
|
|||||||
*
|
*
|
||||||
* @param {MatrixEvent} event
|
* @param {MatrixEvent} event
|
||||||
*
|
*
|
||||||
* @return {null} The event referred to an unknown megolm session
|
|
||||||
* @return {module:crypto.DecryptionResult} decryption result
|
|
||||||
*
|
|
||||||
* @throws {module:crypto/algorithms/base.DecryptionError} if there is a
|
* @throws {module:crypto/algorithms/base.DecryptionError} if there is a
|
||||||
* problem decrypting the event
|
* problem decrypting the event
|
||||||
*/
|
*/
|
||||||
|
@@ -79,7 +79,7 @@ OlmEncryption.prototype._ensureSession = function(roomMembers) {
|
|||||||
*
|
*
|
||||||
* @param {module:models/room} room
|
* @param {module:models/room} room
|
||||||
* @param {string} eventType
|
* @param {string} eventType
|
||||||
* @param {object} plaintext event content
|
* @param {object} content plaintext event content
|
||||||
*
|
*
|
||||||
* @return {module:client.Promise} Promise which resolves to the new event body
|
* @return {module:client.Promise} Promise which resolves to the new event body
|
||||||
*/
|
*/
|
||||||
|
@@ -348,7 +348,7 @@ Crypto.prototype._getDevicesFromStore = function(userIds) {
|
|||||||
/**
|
/**
|
||||||
* @param {string[]} downloadUsers list of userIds
|
* @param {string[]} downloadUsers list of userIds
|
||||||
*
|
*
|
||||||
* @return {Object a map from userId to a promise for a result for that user
|
* @return {Object} a map from userId to a promise for a result for that user
|
||||||
*/
|
*/
|
||||||
Crypto.prototype._doKeyDownloadForUsers = function(downloadUsers) {
|
Crypto.prototype._doKeyDownloadForUsers = function(downloadUsers) {
|
||||||
var self = this;
|
var self = this;
|
||||||
@@ -546,7 +546,7 @@ function _storeDeviceKeys(_olmDevice, userStore, deviceResult) {
|
|||||||
*
|
*
|
||||||
* @param {string} userId the user to list keys for.
|
* @param {string} userId the user to list keys for.
|
||||||
*
|
*
|
||||||
* @return {module:crypto/deviceinfo[]?} list of devices, or null if we haven't
|
* @return {module:crypto/deviceinfo[]|null} list of devices, or null if we haven't
|
||||||
* managed to get a list of devices for this user yet.
|
* managed to get a list of devices for this user yet.
|
||||||
*/
|
*/
|
||||||
Crypto.prototype.getStoredDevicesForUser = function(userId) {
|
Crypto.prototype.getStoredDevicesForUser = function(userId) {
|
||||||
|
@@ -44,7 +44,7 @@ function _matches_wildcard(actual_value, filter_value) {
|
|||||||
* 'Filters' are referred to as 'FilterCollections'.
|
* 'Filters' are referred to as 'FilterCollections'.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} the definition of this filter JSON, e.g. { 'contains_url': true }
|
* @param {Object} filter_json the definition of this filter JSON, e.g. { 'contains_url': true }
|
||||||
*/
|
*/
|
||||||
function FilterComponent(filter_json) {
|
function FilterComponent(filter_json) {
|
||||||
this.filter_json = filter_json;
|
this.filter_json = filter_json;
|
||||||
|
@@ -89,8 +89,8 @@ InteractiveAuth.prototype = {
|
|||||||
/**
|
/**
|
||||||
* get the server params for a given stage
|
* get the server params for a given stage
|
||||||
*
|
*
|
||||||
* @param {string} login type for the stage
|
* @param {string} loginType login type for the stage
|
||||||
* @return {object?} any parameters from the server for this stage
|
* @return {object?} any parameters from the server for this stage
|
||||||
*/
|
*/
|
||||||
getStageParams: function(loginType) {
|
getStageParams: function(loginType) {
|
||||||
var params = {};
|
var params = {};
|
||||||
|
@@ -253,7 +253,7 @@ RoomState.prototype.maySendMessage = function(userId) {
|
|||||||
/**
|
/**
|
||||||
* Returns true if the given user ID has permission to send a normal
|
* Returns true if the given user ID has permission to send a normal
|
||||||
* event of type `eventType` into this room.
|
* event of type `eventType` into this room.
|
||||||
* @param {string} type The type of event to test
|
* @param {string} eventType The type of event to test
|
||||||
* @param {string} userId The user ID of the user to test permission for
|
* @param {string} userId The user ID of the user to test permission for
|
||||||
* @return {boolean} true if the given user ID should be permitted to send
|
* @return {boolean} true if the given user ID should be permitted to send
|
||||||
* the given type of event into this room,
|
* the given type of event into this room,
|
||||||
@@ -267,8 +267,8 @@ RoomState.prototype.maySendEvent = function(eventType, userId) {
|
|||||||
/**
|
/**
|
||||||
* Returns true if the given MatrixClient has permission to send a state
|
* Returns true if the given MatrixClient has permission to send a state
|
||||||
* event of type `stateEventType` into this room.
|
* event of type `stateEventType` into this room.
|
||||||
* @param {string} type The type of state events to test
|
* @param {string} stateEventType The type of state events to test
|
||||||
* @param {MatrixClient} The client to test permission for
|
* @param {MatrixClient} cli The client to test permission for
|
||||||
* @return {boolean} true if the given client should be permitted to send
|
* @return {boolean} true if the given client should be permitted to send
|
||||||
* the given type of state event into this room,
|
* the given type of state event into this room,
|
||||||
* according to the room's state.
|
* according to the room's state.
|
||||||
@@ -283,7 +283,7 @@ RoomState.prototype.mayClientSendStateEvent = function(stateEventType, cli) {
|
|||||||
/**
|
/**
|
||||||
* Returns true if the given user ID has permission to send a state
|
* Returns true if the given user ID has permission to send a state
|
||||||
* event of type `stateEventType` into this room.
|
* event of type `stateEventType` into this room.
|
||||||
* @param {string} type The type of state events to test
|
* @param {string} stateEventType The type of state events to test
|
||||||
* @param {string} userId The user ID of the user to test permission for
|
* @param {string} userId The user ID of the user to test permission for
|
||||||
* @return {boolean} true if the given user ID should be permitted to send
|
* @return {boolean} true if the given user ID should be permitted to send
|
||||||
* the given type of state event into this room,
|
* the given type of state event into this room,
|
||||||
@@ -296,7 +296,7 @@ RoomState.prototype.maySendStateEvent = function(stateEventType, userId) {
|
|||||||
/**
|
/**
|
||||||
* Returns true if the given user ID has permission to send a normal or state
|
* Returns true if the given user ID has permission to send a normal or state
|
||||||
* event of type `eventType` into this room.
|
* event of type `eventType` into this room.
|
||||||
* @param {string} type The type of event to test
|
* @param {string} eventType The type of event to test
|
||||||
* @param {string} userId The user ID of the user to test permission for
|
* @param {string} userId The user ID of the user to test permission for
|
||||||
* @param {boolean} state If true, tests if the user may send a state
|
* @param {boolean} state If true, tests if the user may send a state
|
||||||
event of this type. Otherwise tests whether
|
event of this type. Otherwise tests whether
|
||||||
|
@@ -1016,7 +1016,7 @@ SyncApi.prototype._resolveInvites = function(room) {
|
|||||||
* @param {Room} room
|
* @param {Room} room
|
||||||
* @param {MatrixEvent[]} stateEventList A list of state events. This is the state
|
* @param {MatrixEvent[]} stateEventList A list of state events. This is the state
|
||||||
* at the *START* of the timeline list if it is supplied.
|
* at the *START* of the timeline list if it is supplied.
|
||||||
* @param {?MatrixEvent[]} timelineEventList A list of timeline events. Lower index
|
* @param {MatrixEvent[]} [timelineEventList] A list of timeline events. Lower index
|
||||||
* is earlier in time. Higher index is later.
|
* is earlier in time. Higher index is later.
|
||||||
*/
|
*/
|
||||||
SyncApi.prototype._processRoomEvents = function(room, stateEventList,
|
SyncApi.prototype._processRoomEvents = function(room, stateEventList,
|
||||||
|
@@ -153,7 +153,7 @@ MatrixCall.prototype.placeScreenSharingCall =
|
|||||||
/**
|
/**
|
||||||
* Play the given HTMLMediaElement, serialising the operation into a chain
|
* Play the given HTMLMediaElement, serialising the operation into a chain
|
||||||
* of promises to avoid racing access to the element
|
* of promises to avoid racing access to the element
|
||||||
* @param {Element} HTMLMediaElement element to play
|
* @param {Element} element HTMLMediaElement element to play
|
||||||
* @param {string} queueId Arbitrary ID to track the chain of promises to be used
|
* @param {string} queueId Arbitrary ID to track the chain of promises to be used
|
||||||
*/
|
*/
|
||||||
MatrixCall.prototype.playElement = function(element, queueId) {
|
MatrixCall.prototype.playElement = function(element, queueId) {
|
||||||
@@ -183,7 +183,7 @@ MatrixCall.prototype.playElement = function(element, queueId) {
|
|||||||
/**
|
/**
|
||||||
* Pause the given HTMLMediaElement, serialising the operation into a chain
|
* Pause the given HTMLMediaElement, serialising the operation into a chain
|
||||||
* of promises to avoid racing access to the element
|
* of promises to avoid racing access to the element
|
||||||
* @param {Element} HTMLMediaElement element to pause
|
* @param {Element} element HTMLMediaElement element to pause
|
||||||
* @param {string} queueId Arbitrary ID to track the chain of promises to be used
|
* @param {string} queueId Arbitrary ID to track the chain of promises to be used
|
||||||
*/
|
*/
|
||||||
MatrixCall.prototype.pauseElement = function(element, queueId) {
|
MatrixCall.prototype.pauseElement = function(element, queueId) {
|
||||||
@@ -209,7 +209,7 @@ MatrixCall.prototype.pauseElement = function(element, queueId) {
|
|||||||
* Assign the given HTMLMediaElement by setting the .src attribute on it,
|
* Assign the given HTMLMediaElement by setting the .src attribute on it,
|
||||||
* serialising the operation into a chain of promises to avoid racing access
|
* serialising the operation into a chain of promises to avoid racing access
|
||||||
* to the element
|
* to the element
|
||||||
* @param {Element} HTMLMediaElement element to pause
|
* @param {Element} element HTMLMediaElement element to pause
|
||||||
* @param {string} src the src attribute value to assign to the element
|
* @param {string} src the src attribute value to assign to the element
|
||||||
* @param {string} queueId Arbitrary ID to track the chain of promises to be used
|
* @param {string} queueId Arbitrary ID to track the chain of promises to be used
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user