simply replaces subscriptions
treat sdk preferences and sync as source of truth
This commit is contained in:
parent
3cd639e0f0
commit
8773c95bf2
1 changed files with 1 additions and 8 deletions
|
@ -157,14 +157,7 @@ export default handleActions(
|
||||||
channelName: `@${channelName}`,
|
channelName: `@${channelName}`,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
if (!state.subscriptions || !state.subscriptions.length) {
|
newSubscriptions = parsedSubscriptions;
|
||||||
newSubscriptions = parsedSubscriptions;
|
|
||||||
} else {
|
|
||||||
const map = {};
|
|
||||||
newSubscriptions = parsedSubscriptions.concat(state.subscriptions).filter(sub => {
|
|
||||||
return map[sub.uri] ? false : (map[sub.uri] = true);
|
|
||||||
}, {});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue