[MM-54494] Update selector to get profiles connected to calls (#24544)

* Update selector to get profiles connected to calls

* Clean plugin version
Этот коммит содержится в:
Claudio Costa
2023-09-14 15:23:18 -06:00
коммит произвёл GitHub
родитель 0fb6e5169d
Коммит db139627ff
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@@ -9,7 +9,7 @@ import type {GlobalState} from 'types/store';
export function isCallsEnabled(state: GlobalState, minVersion = '0.4.2') {
return Boolean(state.plugins.plugins[suitePluginIds.calls] &&
semver.gte(state.plugins.plugins[suitePluginIds.calls].version || '0.0.0', minVersion));
semver.gte(String(semver.clean(state.plugins.plugins[suitePluginIds.calls].version || '0.0.0')), minVersion));
}
// isCallsRingingEnabledOnServer is the flag for the ringing/notification feature in calls