Fix issue with getNewestSubscriptionId

This commit is contained in:
Aleksandr Kraiz
2023-06-05 19:33:07 +04:00
parent 3af4348e9c
commit 3abdf78ce3
2 changed files with 2 additions and 2 deletions

View File

@@ -317,7 +317,7 @@ class AggregatorWS {
*/
getNewestSubscriptionId(id: string): string {
const newId = this.subIdReplacements[id];
if (newId !== undefined) {
if (newId !== undefined && newId !== id) {
return this.getNewestSubscriptionId(newId);
}
return id;