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

Maybe satisfy the strict ts checker

This commit is contained in:
Kegan Dougal
2022-11-01 16:35:40 +00:00
parent fef53be5b4
commit 135d2da143

View File

@@ -838,7 +838,7 @@ export class SlidingSync extends TypedEventEmitter<SlidingSyncEvent, SlidingSync
const customSubName = this.roomIdToCustomSubscription.get(roomId);
let sub = this.roomSubscriptionInfo;
if (customSubName && this.customSubscriptions.has(customSubName)) {
sub = this.customSubscriptions.get(customSubName);
sub = this.customSubscriptions.get(customSubName)!;
}
reqBody.room_subscriptions[roomId] = sub;
}