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
@@ -7,6 +7,7 @@ import {getSelectedPostId, getIsRhsOpen} from 'selectors/rhs';
|
||||
import BotTag from 'components/widgets/tag/bot_tag';
|
||||
|
||||
import messageHtmlToComponent from 'utils/message_html_to_component';
|
||||
import * as NotificationSounds from 'utils/notification_sounds';
|
||||
import {formatText} from 'utils/text_formatting';
|
||||
import {getHistory} from 'utils/browser_history';
|
||||
|
||||
@@ -48,6 +49,7 @@ window.openInteractiveDialog = openInteractiveDialog;
|
||||
window.useNotifyAdmin = useNotifyAdmin;
|
||||
window.WebappUtils = {
|
||||
modals: {openModal, ModalIdentifiers},
|
||||
notificationSounds: {ring: NotificationSounds.ring, stopRing: NotificationSounds.stopRing},
|
||||
};
|
||||
Object.defineProperty(window.WebappUtils, 'browserHistory', {
|
||||
get: () => getHistory(),
|
||||
|
||||
Ссылка в новой задаче
Block a user