You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
more lint and thinkos
This commit is contained in:
@@ -723,16 +723,16 @@ MatrixClient.prototype.deleteRoomTag = function(roomId, tagName, callback) {
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {MatrixEvent} account_data event
|
||||
* @param {string} event type to be set
|
||||
* @param {string} eventType event type to be set
|
||||
* @param {object} content event content
|
||||
* @param {module:client.callback} callback Optional.
|
||||
* @return {module:client.Promise} Resolves: TODO
|
||||
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
||||
*/
|
||||
MatrixClient.prototype.setAccountData = function(eventType, content, callback) {
|
||||
var path = utils.encodeUri("/user/$userId/account_data/$type", {
|
||||
$userId: this.credentials.userId,
|
||||
$type: event.getType(),
|
||||
$type: eventType,
|
||||
});
|
||||
return this._http.authedRequestWithPrefix(
|
||||
callback, "PUT", path, undefined, content, httpApi.PREFIX_V2_ALPHA
|
||||
@@ -741,7 +741,7 @@ MatrixClient.prototype.setAccountData = function(eventType, content, callback) {
|
||||
|
||||
/**
|
||||
* @param {string} roomId
|
||||
* @param {string} event type to be set
|
||||
* @param {string} eventType event type to be set
|
||||
* @param {object} content event content
|
||||
* @param {module:client.callback} callback Optional.
|
||||
* @return {module:client.Promise} Resolves: TODO
|
||||
|
||||
@@ -345,7 +345,8 @@ SyncApi.prototype._sync = function(syncOptions, attempt) {
|
||||
var ephemeralEvents =
|
||||
self._mapSyncEventsFormat(joinObj.ephemeral, undefined, 'ephemeral');
|
||||
var accountDataEvents =
|
||||
self._mapSyncEventsFormat(joinObj.account_data, undefined, 'account_data');
|
||||
self._mapSyncEventsFormat(joinObj.account_data, undefined,
|
||||
'account_data');
|
||||
|
||||
// we do this first so it's correct when any of the events fire
|
||||
room.unread_notification_count = joinObj.unread_notification_count;
|
||||
|
||||
Reference in New Issue
Block a user