forked from Ivasoft/mattermost-mobile
* use mean opinion score detection; add call quality alert bar; tests * rename MessageBar's file to message_bar * i18n * use mosThreshold from calls-common; upgrade calls-common * use callsBg for text and icon
35 lines
737 B
TypeScript
35 lines
737 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {toMilliseconds} from '@utils/datetime';
|
|
|
|
const RefreshConfigMillis = toMilliseconds({minutes: 20});
|
|
|
|
const RequiredServer = {
|
|
FULL_VERSION: '6.3.0',
|
|
MAJOR_VERSION: 6,
|
|
MIN_VERSION: 3,
|
|
PATCH_VERSION: 0,
|
|
};
|
|
|
|
const PluginId = 'com.mattermost.calls';
|
|
|
|
const REACTION_TIMEOUT = 10000;
|
|
const REACTION_LIMIT = 20;
|
|
const CALL_QUALITY_RESET_MS = toMilliseconds({minutes: 1});
|
|
|
|
export enum MessageBarType {
|
|
Microphone,
|
|
CallQuality,
|
|
}
|
|
|
|
export default {
|
|
RefreshConfigMillis,
|
|
RequiredServer,
|
|
PluginId,
|
|
REACTION_TIMEOUT,
|
|
REACTION_LIMIT,
|
|
MessageBarType,
|
|
CALL_QUALITY_RESET_MS,
|
|
};
|