@placetime/corptime-conference 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lang/main-ru.json CHANGED
@@ -761,8 +761,8 @@
761
761
  "linkToSalesforceKey": "Отправить ссылку на встречу для Salesforce",
762
762
  "linkToSalesforceProgress": "Отправка ссылки на встречу для Salesforce…",
763
763
  "linkToSalesforceSuccess": "Ссылка на эту встречу для Salesforce была отправлена",
764
- "localRecordingStarted": "{{name}} начал локальную запись.",
765
- "localRecordingStopped": "{{name}} остановил локальную запись.",
764
+ "localRecordingStarted": "{{name}} Начал запись видеоконференци.",
765
+ "localRecordingStopped": "{{name}} Завершил запись видеконференции.",
766
766
  "me": "Я",
767
767
  "moderationInEffectCSDescription": "Пожалуйста, поднимите руку, если вы хотите поделиться своим экраном.",
768
768
  "moderationInEffectCSTitle": "Демонстрация экрана заблокирована модератором",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@placetime/corptime-conference",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "React Native SDK from Corptime-Conference",
5
5
  "main": "index.tsx",
6
6
  "license": "Apache-2.0",
@@ -29,6 +29,8 @@ import {
29
29
  conferenceNotFoundVisibilityChanged,
30
30
  mediaPermissionPromptVisibilityChanged
31
31
  } from "../overlay/actions.web";
32
+ // @ts-ignore
33
+ import { jitsiLocalStorage } from "@jitsi/js-utils";
32
34
 
33
35
  export * from './actions.any';
34
36
 
@@ -121,10 +123,8 @@ export function maybeRedirectToWelcomePage(options: { feedbackSubmitted?: boolea
121
123
  } = getState()['features/base/config'];
122
124
 
123
125
  const { jwt } = getState()['features/base/jwt'];
124
- // save whether current user is guest or not, and pass auth token,
125
- // before navigating to close page
126
- window.sessionStorage.setItem('guest', (!jwt).toString());
127
- window.sessionStorage.setItem('jwt', jwt ?? '');
126
+
127
+ jitsiLocalStorage.setItem(jwt, jwt ?? '');
128
128
 
129
129
  // if close page is enabled redirect to it, without further action
130
130
  if (enableClosePage) {
@@ -19,6 +19,8 @@ import {setDelayedLoadOfAvatarUrl, setJWT, setKnownAvatarUrl, setUserInfoByJWT}
19
19
  import { parseJWTFromURLParams } from './functions';
20
20
  import logger from './logger';
21
21
  import {doGetJSON} from "../util/httpUtils";
22
+ // @ts-ignore
23
+ import { jitsiLocalStorage } from "@jitsi/js-utils";
22
24
 
23
25
  /**
24
26
  * Set up a state change listener to perform maintenance tasks when the conference
@@ -132,7 +134,7 @@ function _setConfigOrLocationURL({ dispatch, getState }: IStore, next: Function,
132
134
 
133
135
  let jwt = locationURL ? parseJWTFromURLParams(locationURL) : undefined;
134
136
  if (!jwt) {
135
- jwt = window.sessionStorage.getItem('jwt');
137
+ jwt = jitsiLocalStorage.getItem('jwt');
136
138
  }
137
139
  if (jwt) {
138
140
  const backendApi = "https://jitsi.dev.placetime.host/backend/api/v1";
@@ -795,7 +795,7 @@ function _localRecordingUpdated({ dispatch, getState }: IStore, conference: IJit
795
795
  descriptionKey: newValue ? 'notify.localRecordingStarted' : 'notify.localRecordingStopped',
796
796
  uid: LOCAL_RECORDING_NOTIFICATION_ID
797
797
  }, NOTIFICATION_TIMEOUT_TYPE.MEDIUM));
798
- dispatch(playSound(newValue ? RECORDING_ON_SOUND_ID : RECORDING_OFF_SOUND_ID));
798
+ // dispatch(playSound(newValue ? RECORDING_ON_SOUND_ID : RECORDING_OFF_SOUND_ID));
799
799
  }
800
800
 
801
801
 
@@ -431,12 +431,12 @@ const Chat = ({
431
431
  <MessageContainer
432
432
  messages = { _messages } />
433
433
  <MessageRecipient />
434
- <Select
435
- containerClassName = { cx(classes.privateMessageRecipientsList) }
436
- id = 'select-chat-recipient'
437
- onChange = { onSelectedRecipientChange }
438
- options = { options }
439
- value = { privateMessageRecipient?.id || OPTION_GROUPCHAT } />
434
+ {/*<Select*/}
435
+ {/* containerClassName = { cx(classes.privateMessageRecipientsList) }*/}
436
+ {/* id = 'select-chat-recipient'*/}
437
+ {/* onChange = { onSelectedRecipientChange }*/}
438
+ {/* options = { options }*/}
439
+ {/* value = { privateMessageRecipient?.id || OPTION_GROUPCHAT } />*/}
440
440
  <ChatInput
441
441
  onSend = { onSendMessage } />
442
442
  </div>
@@ -18,7 +18,7 @@ class BasePageOverlay extends AbstractBasePageOverlay {
18
18
  * @inheritdoc
19
19
  * @returns {ReactElement}
20
20
  */
21
- render() {
21
+ override render() {
22
22
  const {_premeetingBackground, t} = this.props;
23
23
  const style = _premeetingBackground ? {
24
24
  background: _premeetingBackground,
@@ -19,7 +19,7 @@ class ConferenceNotFoundOverlay extends AbstractConferenceNotFoundOverlay {
19
19
  * @inheritdoc
20
20
  * @returns {ReactElement}
21
21
  */
22
- render() {
22
+ override render() {
23
23
  const { _premeetingBackground, t } = this.props;
24
24
  const style = _premeetingBackground ? {
25
25
  background: _premeetingBackground,
@@ -2,7 +2,6 @@ import { IReduxState } from '../app/types';
2
2
 
3
3
  import PageReloadOverlay from './components/web/PageReloadOverlay';
4
4
  import SuspendedOverlay from './components/web/SuspendedOverlay';
5
- import UserMediaPermissionsOverlay from './components/web/UserMediaPermissionsOverlay';
6
5
  import ConferenceNotFoundOverlay from "./components/web/ConferenceNotFoundOverlay";
7
6
  import BasePageOverlay from "./components/web/BasePageOverlay";
8
7
 
@@ -140,9 +140,9 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
140
140
  titleKey: 'dialog.recording'
141
141
  };
142
142
 
143
- if (localRecording?.notifyAllParticipants && !onlySelf) {
144
- dispatch(playSound(RECORDING_ON_SOUND_ID));
145
- }
143
+ // if (localRecording?.notifyAllParticipants && !onlySelf) {
144
+ // dispatch(playSound(RECORDING_ON_SOUND_ID));
145
+ // }
146
146
  dispatch(showNotification(props, NOTIFICATION_TIMEOUT_TYPE.MEDIUM));
147
147
  dispatch(showNotification({
148
148
  titleKey: 'recording.localRecordingStartWarningTitle',
@@ -190,7 +190,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
190
190
  LocalRecordingManager.stopLocalRecording();
191
191
  dispatch(updateLocalRecordingStatus(false));
192
192
  if (localRecording?.notifyAllParticipants && !LocalRecordingManager.selfRecording) {
193
- dispatch(playSound(RECORDING_OFF_SOUND_ID));
193
+ // dispatch(playSound(RECORDING_OFF_SOUND_ID));
194
194
  }
195
195
  if (typeof APP !== 'undefined') {
196
196
  APP.API.notifyRecordingStatusChanged(
@@ -255,7 +255,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
255
255
  let soundID;
256
256
 
257
257
  if (mode === JitsiRecordingConstants.mode.FILE && !isRecorderTranscriptionsRunning(state)) {
258
- soundID = RECORDING_ON_SOUND_ID;
258
+ // soundID = RECORDING_ON_SOUND_ID;
259
259
  } else if (mode === JitsiRecordingConstants.mode.STREAM) {
260
260
  soundID = LIVE_STREAMING_ON_SOUND_ID;
261
261
  }
@@ -285,8 +285,8 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
285
285
  sendAnalytics(createRecordingEvent('stop', mode, duration));
286
286
 
287
287
  if (mode === JitsiRecordingConstants.mode.FILE && !isRecorderTranscriptionsRunning(state)) {
288
- soundOff = RECORDING_OFF_SOUND_ID;
289
- soundOn = RECORDING_ON_SOUND_ID;
288
+ // soundOff = RECORDING_OFF_SOUND_ID;
289
+ // soundOn = RECORDING_ON_SOUND_ID;
290
290
  } else if (mode === JitsiRecordingConstants.mode.STREAM) {
291
291
  soundOff = LIVE_STREAMING_OFF_SOUND_ID;
292
292
  soundOn = LIVE_STREAMING_ON_SOUND_ID;
@@ -165,8 +165,9 @@ export default function Toolbox({ toolbarButtons }: IProps) {
165
165
  if (endConferenceSupported && isMobile) {
166
166
  hangupMenuVisible && dispatch(setToolboxVisible(true));
167
167
  } else if (hangupMenuVisible && !toolbarVisible) {
168
- onSetHangupVisible(false);
169
- dispatch(setToolbarHovered(false));
168
+ // FIXME on mobile sometimes auto close hangup menu after open
169
+ // onSetHangupVisible(false);
170
+ // dispatch(setToolbarHovered(false));
170
171
  }
171
172
  }, [dispatch, hangupMenuVisible, toolbarVisible, onSetHangupVisible]);
172
173
 
@@ -63,7 +63,7 @@ function maybeEmitRecordingNotification(dispatch: IStore['dispatch'], getState:
63
63
 
64
64
  batch(() => {
65
65
  dispatch(showNotification(notifyProps, NOTIFICATION_TIMEOUT_TYPE.SHORT));
66
- dispatch(playSound(on ? RECORDING_ON_SOUND_ID : RECORDING_OFF_SOUND_ID));
66
+ // dispatch(playSound(on ? RECORDING_ON_SOUND_ID : RECORDING_OFF_SOUND_ID));
67
67
  });
68
68
  }
69
69