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
Fix whitespace issues
This commit is contained in:
@@ -3797,7 +3797,7 @@ MatrixClient.prototype.paginateEventTimeline = function(eventTimeline, opts) {
|
|||||||
return pendingRequest;
|
return pendingRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
let path, params, promise;
|
let path; let params; let promise;
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
if (isNotifTimeline) {
|
if (isNotifTimeline) {
|
||||||
@@ -4217,7 +4217,7 @@ MatrixClient.prototype.getRoomPushRule = function(scope, roomId) {
|
|||||||
*/
|
*/
|
||||||
MatrixClient.prototype.setRoomMutePushRule = function(scope, roomId, mute) {
|
MatrixClient.prototype.setRoomMutePushRule = function(scope, roomId, mute) {
|
||||||
const self = this;
|
const self = this;
|
||||||
let deferred, hasDontNotifyRule;
|
let deferred; let hasDontNotifyRule;
|
||||||
|
|
||||||
// Get the existing room-kind push rule if any
|
// Get the existing room-kind push rule if any
|
||||||
const roomPushRule = this.getRoomPushRule(scope, roomId);
|
const roomPushRule = this.getRoomPushRule(scope, roomId);
|
||||||
|
|||||||
@@ -647,7 +647,7 @@ EventTimelineSet.prototype.compareEventOrdering = function(eventId1, eventId2) {
|
|||||||
if (timeline1 === timeline2) {
|
if (timeline1 === timeline2) {
|
||||||
// both events are in the same timeline - figure out their
|
// both events are in the same timeline - figure out their
|
||||||
// relative indices
|
// relative indices
|
||||||
let idx1, idx2;
|
let idx1; let idx2;
|
||||||
const events = timeline1.getEvents();
|
const events = timeline1.getEvents();
|
||||||
for (let idx = 0; idx < events.length &&
|
for (let idx = 0; idx < events.length &&
|
||||||
(idx1 === undefined || idx2 === undefined); idx++) {
|
(idx1 === undefined || idx2 === undefined); idx++) {
|
||||||
|
|||||||
@@ -185,8 +185,8 @@ function _runCallbacks() {
|
|||||||
*/
|
*/
|
||||||
function binarySearch(array, func) {
|
function binarySearch(array, func) {
|
||||||
// min is inclusive, max exclusive.
|
// min is inclusive, max exclusive.
|
||||||
let min = 0,
|
let min = 0;
|
||||||
max = array.length;
|
let max = array.length;
|
||||||
|
|
||||||
while (min < max) {
|
while (min < max) {
|
||||||
const mid = (min + max) >> 1;
|
const mid = (min + max) >> 1;
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ TimelineWindow.prototype.getEvents = function() {
|
|||||||
// (Note that both this._start.index and this._end.index are relative
|
// (Note that both this._start.index and this._end.index are relative
|
||||||
// to their respective timelines' BaseIndex).
|
// to their respective timelines' BaseIndex).
|
||||||
//
|
//
|
||||||
let startIndex = 0, endIndex = events.length;
|
let startIndex = 0; let endIndex = events.length;
|
||||||
if (timeline === this._start.timeline) {
|
if (timeline === this._start.timeline) {
|
||||||
startIndex = this._start.index + timeline.getBaseIndex();
|
startIndex = this._start.index + timeline.getBaseIndex();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user