@@ -18,9 +18,7 @@ import {
|
|||||||
share,
|
share,
|
||||||
take,
|
take,
|
||||||
takeUntil,
|
takeUntil,
|
||||||
tap,
|
|
||||||
} from "rxjs";
|
} from "rxjs";
|
||||||
import { logger } from "matrix-js-sdk/lib/logger";
|
|
||||||
|
|
||||||
import { type Behavior } from "./Behavior";
|
import { type Behavior } from "./Behavior";
|
||||||
|
|
||||||
@@ -158,17 +156,6 @@ export class ObservableScope {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public unTestedMethod$<T>(input$: Behavior<T>): Observable<T> {
|
|
||||||
// This method is intentionally left untested.
|
|
||||||
return input$.pipe(
|
|
||||||
map((value) => value),
|
|
||||||
distinctUntilChanged(),
|
|
||||||
tap((value) => {
|
|
||||||
logger.log(`Value changed: ${value}`);
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Splits a Behavior of objects with static properties into an object with
|
* Splits a Behavior of objects with static properties into an object with
|
||||||
* Behavior properties.
|
* Behavior properties.
|
||||||
|
|||||||
Reference in New Issue
Block a user