1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Update src/sliding-sync.ts

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Till
2022-12-19 11:54:20 +01:00
committed by GitHub
parent 8af0ff111b
commit 3872c5f099

View File

@@ -397,7 +397,7 @@ export class SlidingSync extends TypedEventEmitter<SlidingSyncEvent, SlidingSync
* @param sub - The subscription information.
*/
public addCustomSubscription(name: string, sub: MSC3575RoomSubscription): void {
if (this.customSubscriptions.get(name) !== undefined) {
if (this.customSubscriptions.has(name)) {
logger.warn(`addCustomSubscription: ${name} already exists as a custom subscription, ignoring.`);
return;
}