MM-52805 - Calls: Add calls ringing & settings panel option (#23444)
* add calls sounds; add calls options to settings panel * i18n * fix types; tests * tests * expose notificationSounds to plugins * fix bad version reference * the real fix * turn off any currentRing if new ring is requested * refactor isCallsEnabled into a selector * fix version fallback * remove unused vars * merge conflicts * stop notification rings on exits --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
79abeb6382
Коммит
c06c47f22e
11
webapp/channels/src/selectors/calls.ts
Обычный файл
11
webapp/channels/src/selectors/calls.ts
Обычный файл
@@ -0,0 +1,11 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import {GlobalState} from 'types/store';
|
||||
import {suitePluginIds} from 'utils/constants';
|
||||
import semver from 'semver';
|
||||
|
||||
export function isCallsEnabled(state: GlobalState, minVersion = '0.4.2') {
|
||||
return state.plugins.plugins[suitePluginIds.calls] &&
|
||||
semver.gte(state.plugins.plugins[suitePluginIds.calls].version || '0.0.0', minVersion);
|
||||
}
|
||||
Ссылка в новой задаче
Block a user