1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

fix: typos

Signed-off-by: Jack Works <jackworks@protonmail.com>
This commit is contained in:
Jack Works
2020-01-22 10:54:46 +08:00
committed by Travis Ralston
parent 0bf1f48623
commit 7c79e7e836
5 changed files with 8 additions and 8 deletions

View File

@@ -751,7 +751,7 @@ MatrixClient.prototype.downloadKeys = function(userIds, forceDownload) {
* *
* @param {string} userId the user to list keys for. * @param {string} userId the user to list keys for.
* *
* @return {Promise<module:crypto-deviceinfo[]>} list of devices * @return {Promise<module:crypto/deviceinfo[]>} list of devices
*/ */
MatrixClient.prototype.getStoredDevicesForUser = async function(userId) { MatrixClient.prototype.getStoredDevicesForUser = async function(userId) {
if (this._crypto === null) { if (this._crypto === null) {
@@ -766,7 +766,7 @@ MatrixClient.prototype.getStoredDevicesForUser = async function(userId) {
* @param {string} userId the user to list keys for. * @param {string} userId the user to list keys for.
* @param {string} deviceId unique identifier for the device * @param {string} deviceId unique identifier for the device
* *
* @return {Promise<?module:crypto-deviceinfo>} device or null * @return {Promise<?module:crypto/deviceinfo>} device or null
*/ */
MatrixClient.prototype.getStoredDevice = async function(userId, deviceId) { MatrixClient.prototype.getStoredDevice = async function(userId, deviceId) {
if (this._crypto === null) { if (this._crypto === null) {

View File

@@ -1110,7 +1110,7 @@ OlmDevice.prototype.decryptGroupMessage = async function(
* *
* @param {string} roomId room in which the message was received * @param {string} roomId room in which the message was received
* @param {string} senderKey base64-encoded curve25519 key of the sender * @param {string} senderKey base64-encoded curve25519 key of the sender
* @param {sring} sessionId session identifier * @param {string} sessionId session identifier
* *
* @returns {Promise<boolean>} true if we have the keys to this session * @returns {Promise<boolean>} true if we have the keys to this session
*/ */

View File

@@ -123,7 +123,7 @@ export async function encryptMessageForDevice(
* @param {object<string, module:crypto/deviceinfo[]>} devicesByUser * @param {object<string, module:crypto/deviceinfo[]>} devicesByUser
* map from userid to list of devices to ensure sessions for * map from userid to list of devices to ensure sessions for
* *
* @param {bolean} force If true, establish a new session even if one already exists. * @param {boolean} force If true, establish a new session even if one already exists.
* Optional. * Optional.
* *
* @return {module:client.Promise} resolves once the sessions are complete, to * @return {module:client.Promise} resolves once the sessions are complete, to

View File

@@ -436,7 +436,7 @@ MatrixHttpApi.prototype = {
* @param {Object=} queryParams A dict of query params (these will NOT be * @param {Object=} queryParams A dict of query params (these will NOT be
* urlencoded). If unspecified, there will be no query params. * urlencoded). If unspecified, there will be no query params.
* *
* @param {Object} data The HTTP JSON body. * @param {Object} [data] The HTTP JSON body.
* *
* @param {Object|Number=} opts additional options. If a number is specified, * @param {Object|Number=} opts additional options. If a number is specified,
* this is treated as `opts.localTimeoutMs`. * this is treated as `opts.localTimeoutMs`.
@@ -518,7 +518,7 @@ MatrixHttpApi.prototype = {
* @param {Object=} queryParams A dict of query params (these will NOT be * @param {Object=} queryParams A dict of query params (these will NOT be
* urlencoded). If unspecified, there will be no query params. * urlencoded). If unspecified, there will be no query params.
* *
* @param {Object} data The HTTP JSON body. * @param {Object} [data] The HTTP JSON body.
* *
* @param {Object=} opts additional options * @param {Object=} opts additional options
* *
@@ -557,7 +557,7 @@ MatrixHttpApi.prototype = {
* @param {Object=} queryParams A dict of query params (these will NOT be * @param {Object=} queryParams A dict of query params (these will NOT be
* urlencoded). If unspecified, there will be no query params. * urlencoded). If unspecified, there will be no query params.
* *
* @param {Object} data The HTTP JSON body. * @param {Object} [data] The HTTP JSON body.
* *
* @param {Object=} opts additional options * @param {Object=} opts additional options
* *

View File

@@ -830,7 +830,7 @@ EventTimelineSet.prototype.aggregateRelations = function(event) {
* *
* @param {object} data more data about the event * @param {object} data more data about the event
* *
* @param {module:event-timeline.EventTimeline} data.timeline the timeline the * @param {module:models/event-timeline.EventTimeline} data.timeline the timeline the
* event was added to/removed from * event was added to/removed from
* *
* @param {boolean} data.liveEvent true if the event was a real-time event * @param {boolean} data.liveEvent true if the event was a real-time event