|
@@ -1,9 +1,3 @@
|
1
|
|
-import { showErrorNotification, showNotification } from '../notifications/actions';
|
2
|
|
-import {
|
3
|
|
- NOTIFICATION_TIMEOUT_TYPE,
|
4
|
|
- TRANSCRIBING_NOTIFICATION_ID
|
5
|
|
-} from '../notifications/constants';
|
6
|
|
-
|
7
|
1
|
import {
|
8
|
2
|
_POTENTIAL_TRANSCRIBER_JOINED,
|
9
|
3
|
_TRANSCRIBER_JOINED,
|
|
@@ -57,59 +51,3 @@ export function potentialTranscriberJoined(participantId: string) {
|
57
|
51
|
transcriberJID: participantId
|
58
|
52
|
};
|
59
|
53
|
}
|
60
|
|
-
|
61
|
|
-/**
|
62
|
|
- * Signals that the pending transcribing notification should be shown on the
|
63
|
|
- * screen.
|
64
|
|
- *
|
65
|
|
- * @returns {showNotification}
|
66
|
|
- */
|
67
|
|
-export function showPendingTranscribingNotification() {
|
68
|
|
- return showNotification({
|
69
|
|
- descriptionKey: 'transcribing.pending',
|
70
|
|
- titleKey: 'dialog.transcribing',
|
71
|
|
- uid: TRANSCRIBING_NOTIFICATION_ID
|
72
|
|
- }, NOTIFICATION_TIMEOUT_TYPE.LONG);
|
73
|
|
-}
|
74
|
|
-
|
75
|
|
-/**
|
76
|
|
- * Signals that the started transcribing notification should be shown on the
|
77
|
|
- * screen.
|
78
|
|
- *
|
79
|
|
- * @returns {showNotification}
|
80
|
|
- */
|
81
|
|
-export function showStartedTranscribingNotification() {
|
82
|
|
- return showNotification({
|
83
|
|
- descriptionKey: 'transcribing.on',
|
84
|
|
- titleKey: 'dialog.transcribing',
|
85
|
|
- uid: TRANSCRIBING_NOTIFICATION_ID
|
86
|
|
- }, NOTIFICATION_TIMEOUT_TYPE.SHORT);
|
87
|
|
-}
|
88
|
|
-
|
89
|
|
-/**
|
90
|
|
- * Signals that the stopped transcribing notification should be shown on the
|
91
|
|
- * screen.
|
92
|
|
- *
|
93
|
|
- * @returns {showNotification}
|
94
|
|
- */
|
95
|
|
-export function showStoppedTranscribingNotification() {
|
96
|
|
- return showNotification({
|
97
|
|
- descriptionKey: 'transcribing.off',
|
98
|
|
- titleKey: 'dialog.transcribing',
|
99
|
|
- uid: TRANSCRIBING_NOTIFICATION_ID
|
100
|
|
- }, NOTIFICATION_TIMEOUT_TYPE.SHORT);
|
101
|
|
-}
|
102
|
|
-
|
103
|
|
-
|
104
|
|
-/**
|
105
|
|
- * Signals that the transcribing error notification should be shown.
|
106
|
|
- *
|
107
|
|
- * @returns {showErrorNotification}
|
108
|
|
- */
|
109
|
|
-export function showTranscribingError() {
|
110
|
|
- return showErrorNotification({
|
111
|
|
- descriptionKey: 'transcribing.error',
|
112
|
|
- titleKey: 'transcribing.failedToStart',
|
113
|
|
- uid: TRANSCRIBING_NOTIFICATION_ID
|
114
|
|
- }, NOTIFICATION_TIMEOUT_TYPE.LONG);
|
115
|
|
-}
|