You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

middleware.ts 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. /* eslint-disable lines-around-comment */
  2. import { debounce } from 'lodash-es';
  3. import { NativeEventEmitter, NativeModules } from 'react-native';
  4. import { AnyAction } from 'redux';
  5. // @ts-expect-error
  6. import { ENDPOINT_TEXT_MESSAGE_NAME } from '../../../../modules/API/constants';
  7. import { appNavigate } from '../../app/actions.native';
  8. import { IStore } from '../../app/types';
  9. import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../../base/app/actionTypes';
  10. import {
  11. CONFERENCE_BLURRED,
  12. CONFERENCE_FAILED,
  13. CONFERENCE_FOCUSED,
  14. CONFERENCE_JOINED,
  15. CONFERENCE_LEFT,
  16. CONFERENCE_WILL_JOIN,
  17. ENDPOINT_MESSAGE_RECEIVED,
  18. SET_ROOM
  19. } from '../../base/conference/actionTypes';
  20. import { JITSI_CONFERENCE_URL_KEY } from '../../base/conference/constants';
  21. import {
  22. forEachConference,
  23. getCurrentConference,
  24. isRoomValid
  25. } from '../../base/conference/functions';
  26. import { IJitsiConference } from '../../base/conference/reducer';
  27. import { CONNECTION_DISCONNECTED } from '../../base/connection/actionTypes';
  28. import {
  29. JITSI_CONNECTION_CONFERENCE_KEY,
  30. JITSI_CONNECTION_URL_KEY
  31. } from '../../base/connection/constants';
  32. import { getURLWithoutParams } from '../../base/connection/utils';
  33. import {
  34. JitsiConferenceEvents } from '../../base/lib-jitsi-meet';
  35. import { SET_AUDIO_MUTED, SET_VIDEO_MUTED } from '../../base/media/actionTypes';
  36. import { toggleCameraFacingMode } from '../../base/media/actions';
  37. import { MEDIA_TYPE, VIDEO_TYPE } from '../../base/media/constants';
  38. import { PARTICIPANT_JOINED, PARTICIPANT_LEFT } from '../../base/participants/actionTypes';
  39. import {
  40. getLocalParticipant,
  41. getParticipantById,
  42. getRemoteParticipants,
  43. isScreenShareParticipantById
  44. } from '../../base/participants/functions';
  45. import MiddlewareRegistry from '../../base/redux/MiddlewareRegistry';
  46. import StateListenerRegistry from '../../base/redux/StateListenerRegistry';
  47. import { toggleScreensharing } from '../../base/tracks/actions.native';
  48. import { getLocalTracks, isLocalTrackMuted } from '../../base/tracks/functions.native';
  49. import { ITrack } from '../../base/tracks/types';
  50. import { CLOSE_CHAT, OPEN_CHAT } from '../../chat/actionTypes';
  51. import { closeChat, openChat, sendMessage, setPrivateMessageRecipient } from '../../chat/actions.native';
  52. import { setRequestingSubtitles } from '../../subtitles/actions.any';
  53. import { CUSTOM_BUTTON_PRESSED } from '../../toolbox/actionTypes';
  54. import { muteLocal } from '../../video-menu/actions.native';
  55. import { ENTER_PICTURE_IN_PICTURE } from '../picture-in-picture/actionTypes';
  56. // @ts-ignore
  57. import { isExternalAPIAvailable } from '../react-native-sdk/functions';
  58. import { READY_TO_CLOSE } from './actionTypes';
  59. import { setParticipantsWithScreenShare } from './actions';
  60. import { participantToParticipantInfo, sendEvent } from './functions';
  61. import logger from './logger';
  62. /**
  63. * Event which will be emitted on the native side when a chat message is received
  64. * through the channel.
  65. */
  66. const CHAT_MESSAGE_RECEIVED = 'CHAT_MESSAGE_RECEIVED';
  67. /**
  68. * Event which will be emitted on the native side when the chat dialog is displayed/closed.
  69. */
  70. const CHAT_TOGGLED = 'CHAT_TOGGLED';
  71. /**
  72. * Event which will be emitted on the native side to indicate the conference
  73. * has ended either by user request or because an error was produced.
  74. */
  75. const CONFERENCE_TERMINATED = 'CONFERENCE_TERMINATED';
  76. /**
  77. * Event which will be emitted on the native side to indicate a message was received
  78. * through the channel.
  79. */
  80. const ENDPOINT_TEXT_MESSAGE_RECEIVED = 'ENDPOINT_TEXT_MESSAGE_RECEIVED';
  81. /**
  82. * Event which will be emitted on the native side to indicate a participant toggles
  83. * the screen share.
  84. */
  85. const SCREEN_SHARE_TOGGLED = 'SCREEN_SHARE_TOGGLED';
  86. /**
  87. * Event which will be emitted on the native side with the participant info array.
  88. */
  89. const PARTICIPANTS_INFO_RETRIEVED = 'PARTICIPANTS_INFO_RETRIEVED';
  90. const externalAPIEnabled = isExternalAPIAvailable();
  91. let eventEmitter: any;
  92. const { ExternalAPI } = NativeModules;
  93. if (externalAPIEnabled) {
  94. eventEmitter = new NativeEventEmitter(ExternalAPI);
  95. }
  96. /**
  97. * Middleware that captures Redux actions and uses the ExternalAPI module to
  98. * turn them into native events so the application knows about them.
  99. *
  100. * @param {Store} store - Redux store.
  101. * @returns {Function}
  102. */
  103. externalAPIEnabled && MiddlewareRegistry.register(store => next => action => {
  104. const oldAudioMuted = store.getState()['features/base/media'].audio.muted;
  105. const result = next(action);
  106. const { type } = action;
  107. switch (type) {
  108. case APP_WILL_MOUNT:
  109. _registerForNativeEvents(store);
  110. break;
  111. case APP_WILL_UNMOUNT:
  112. _unregisterForNativeEvents();
  113. break;
  114. case CONFERENCE_FAILED: {
  115. const { error, ...data } = action;
  116. // XXX Certain CONFERENCE_FAILED errors are recoverable i.e. they have
  117. // prevented the user from joining a specific conference but the app may
  118. // be able to eventually join the conference. For example, the app will
  119. // ask the user for a password upon
  120. // JitsiConferenceErrors.PASSWORD_REQUIRED and will retry joining the
  121. // conference afterwards. Such errors are to not reach the native
  122. // counterpart of the External API (or at least not in the
  123. // fatality/finality semantics attributed to
  124. // conferenceFailed:/onConferenceFailed).
  125. if (!error.recoverable) {
  126. _sendConferenceEvent(store, /* action */ {
  127. error: _toErrorString(error),
  128. ...data
  129. });
  130. }
  131. break;
  132. }
  133. case CONFERENCE_LEFT:
  134. _sendConferenceEvent(store, action);
  135. break;
  136. case CONFERENCE_JOINED:
  137. _sendConferenceEvent(store, action);
  138. _registerForEndpointTextMessages(store);
  139. break;
  140. case CONFERENCE_BLURRED:
  141. sendEvent(store, CONFERENCE_BLURRED, {});
  142. break;
  143. case CONFERENCE_FOCUSED:
  144. sendEvent(store, CONFERENCE_FOCUSED, {});
  145. break;
  146. case CONNECTION_DISCONNECTED: {
  147. // FIXME: This is a hack. See the description in the JITSI_CONNECTION_CONFERENCE_KEY constant definition.
  148. // Check if this connection was attached to any conference.
  149. // If it wasn't, fake a CONFERENCE_TERMINATED event.
  150. const { connection } = action;
  151. const conference = connection[JITSI_CONNECTION_CONFERENCE_KEY];
  152. if (!conference) {
  153. // This action will arrive late, so the locationURL stored on the state is no longer valid.
  154. const locationURL = connection[JITSI_CONNECTION_URL_KEY];
  155. sendEvent(
  156. store,
  157. CONFERENCE_TERMINATED,
  158. /* data */ {
  159. url: _normalizeUrl(locationURL)
  160. });
  161. }
  162. break;
  163. }
  164. case CUSTOM_BUTTON_PRESSED: {
  165. const { id, text } = action;
  166. sendEvent(
  167. store,
  168. CUSTOM_BUTTON_PRESSED,
  169. {
  170. id,
  171. text
  172. });
  173. break;
  174. }
  175. case ENDPOINT_MESSAGE_RECEIVED: {
  176. const { participant, data } = action;
  177. if (data?.name === ENDPOINT_TEXT_MESSAGE_NAME) {
  178. sendEvent(
  179. store,
  180. ENDPOINT_TEXT_MESSAGE_RECEIVED,
  181. /* data */ {
  182. message: data.text,
  183. senderId: participant.getId()
  184. });
  185. }
  186. break;
  187. }
  188. case ENTER_PICTURE_IN_PICTURE:
  189. sendEvent(store, type, /* data */ {});
  190. break;
  191. case OPEN_CHAT:
  192. case CLOSE_CHAT: {
  193. sendEvent(
  194. store,
  195. CHAT_TOGGLED,
  196. /* data */ {
  197. isOpen: action.type === OPEN_CHAT
  198. });
  199. break;
  200. }
  201. case PARTICIPANT_JOINED:
  202. case PARTICIPANT_LEFT: {
  203. // Skip these events while not in a conference. SDK users can still retrieve them.
  204. const { conference } = store.getState()['features/base/conference'];
  205. if (!conference) {
  206. break;
  207. }
  208. const { participant } = action;
  209. const isVirtualScreenshareParticipant = isScreenShareParticipantById(store.getState(), participant.id);
  210. if (isVirtualScreenshareParticipant) {
  211. break;
  212. }
  213. sendEvent(
  214. store,
  215. action.type,
  216. participantToParticipantInfo(participant) /* data */
  217. );
  218. break;
  219. }
  220. case READY_TO_CLOSE:
  221. sendEvent(store, type, /* data */ {});
  222. break;
  223. case SET_ROOM:
  224. _maybeTriggerEarlyConferenceWillJoin(store, action);
  225. break;
  226. case SET_AUDIO_MUTED:
  227. if (action.muted !== oldAudioMuted) {
  228. sendEvent(
  229. store,
  230. 'AUDIO_MUTED_CHANGED',
  231. /* data */ {
  232. muted: action.muted
  233. });
  234. }
  235. break;
  236. case SET_VIDEO_MUTED:
  237. sendEvent(
  238. store,
  239. 'VIDEO_MUTED_CHANGED',
  240. /* data */ {
  241. muted: action.muted
  242. });
  243. break;
  244. }
  245. return result;
  246. });
  247. /**
  248. * Listen for changes to the known media tracks and look
  249. * for updates to screen shares for emitting native events.
  250. * The listener is debounced to avoid state thrashing that might occur,
  251. * especially when switching in or out of p2p.
  252. */
  253. externalAPIEnabled && StateListenerRegistry.register(
  254. /* selector */ state => state['features/base/tracks'],
  255. /* listener */ debounce((tracks: ITrack[], store: IStore) => {
  256. const oldScreenShares = store.getState()['features/mobile/external-api'].screenShares || [];
  257. const newScreenShares = tracks
  258. .filter(track => track.mediaType === MEDIA_TYPE.SCREENSHARE || track.videoType === VIDEO_TYPE.DESKTOP)
  259. .map(track => track.participantId);
  260. oldScreenShares.forEach(participantId => {
  261. if (!newScreenShares.includes(participantId)) {
  262. sendEvent(
  263. store,
  264. SCREEN_SHARE_TOGGLED,
  265. /* data */ {
  266. participantId,
  267. sharing: false
  268. });
  269. }
  270. });
  271. newScreenShares.forEach(participantId => {
  272. if (!oldScreenShares.includes(participantId)) {
  273. sendEvent(
  274. store,
  275. SCREEN_SHARE_TOGGLED,
  276. /* data */ {
  277. participantId,
  278. sharing: true
  279. });
  280. }
  281. });
  282. store.dispatch(setParticipantsWithScreenShare(newScreenShares));
  283. }, 100));
  284. /**
  285. * Registers for events sent from the native side via NativeEventEmitter.
  286. *
  287. * @param {Store} store - The redux store.
  288. * @private
  289. * @returns {void}
  290. */
  291. function _registerForNativeEvents(store: IStore) {
  292. const { getState, dispatch } = store;
  293. eventEmitter.addListener(ExternalAPI.HANG_UP, () => {
  294. dispatch(appNavigate(undefined));
  295. });
  296. eventEmitter.addListener(ExternalAPI.SET_AUDIO_MUTED, ({ muted }: any) => {
  297. dispatch(muteLocal(muted, MEDIA_TYPE.AUDIO));
  298. });
  299. eventEmitter.addListener(ExternalAPI.SET_VIDEO_MUTED, ({ muted }: any) => {
  300. dispatch(muteLocal(muted, MEDIA_TYPE.VIDEO));
  301. });
  302. eventEmitter.addListener(ExternalAPI.SEND_ENDPOINT_TEXT_MESSAGE, ({ to, message }: any) => {
  303. const conference = getCurrentConference(getState());
  304. try {
  305. conference?.sendEndpointMessage(to, {
  306. name: ENDPOINT_TEXT_MESSAGE_NAME,
  307. text: message
  308. });
  309. } catch (error) {
  310. logger.warn('Cannot send endpointMessage', error);
  311. }
  312. });
  313. eventEmitter.addListener(ExternalAPI.TOGGLE_SCREEN_SHARE, ({ enabled }: any) => {
  314. dispatch(toggleScreensharing(enabled));
  315. });
  316. eventEmitter.addListener(ExternalAPI.RETRIEVE_PARTICIPANTS_INFO, ({ requestId }: any) => {
  317. const participantsInfo = [];
  318. const remoteParticipants = getRemoteParticipants(store);
  319. const localParticipant = getLocalParticipant(store);
  320. localParticipant && participantsInfo.push(participantToParticipantInfo(localParticipant));
  321. remoteParticipants.forEach(participant => {
  322. if (!participant.fakeParticipant) {
  323. participantsInfo.push(participantToParticipantInfo(participant));
  324. }
  325. });
  326. sendEvent(
  327. store,
  328. PARTICIPANTS_INFO_RETRIEVED,
  329. /* data */ {
  330. participantsInfo,
  331. requestId
  332. });
  333. });
  334. eventEmitter.addListener(ExternalAPI.OPEN_CHAT, ({ to }: any) => {
  335. const participant = getParticipantById(store, to);
  336. dispatch(openChat(participant));
  337. });
  338. eventEmitter.addListener(ExternalAPI.CLOSE_CHAT, () => {
  339. dispatch(closeChat());
  340. });
  341. eventEmitter.addListener(ExternalAPI.SEND_CHAT_MESSAGE, ({ message, to }: any) => {
  342. const participant = getParticipantById(store, to);
  343. if (participant) {
  344. dispatch(setPrivateMessageRecipient(participant));
  345. }
  346. dispatch(sendMessage(message));
  347. });
  348. eventEmitter.addListener(ExternalAPI.SET_CLOSED_CAPTIONS_ENABLED,
  349. ({ enabled, displaySubtitles, language }: any) => {
  350. dispatch(setRequestingSubtitles(enabled, displaySubtitles, language));
  351. });
  352. eventEmitter.addListener(ExternalAPI.TOGGLE_CAMERA, () => {
  353. dispatch(toggleCameraFacingMode());
  354. });
  355. }
  356. /**
  357. * Unregister for events sent from the native side via NativeEventEmitter.
  358. *
  359. * @private
  360. * @returns {void}
  361. */
  362. function _unregisterForNativeEvents() {
  363. eventEmitter.removeAllListeners(ExternalAPI.HANG_UP);
  364. eventEmitter.removeAllListeners(ExternalAPI.SET_AUDIO_MUTED);
  365. eventEmitter.removeAllListeners(ExternalAPI.SET_VIDEO_MUTED);
  366. eventEmitter.removeAllListeners(ExternalAPI.SEND_ENDPOINT_TEXT_MESSAGE);
  367. eventEmitter.removeAllListeners(ExternalAPI.TOGGLE_SCREEN_SHARE);
  368. eventEmitter.removeAllListeners(ExternalAPI.RETRIEVE_PARTICIPANTS_INFO);
  369. eventEmitter.removeAllListeners(ExternalAPI.OPEN_CHAT);
  370. eventEmitter.removeAllListeners(ExternalAPI.CLOSE_CHAT);
  371. eventEmitter.removeAllListeners(ExternalAPI.SEND_CHAT_MESSAGE);
  372. eventEmitter.removeAllListeners(ExternalAPI.SET_CLOSED_CAPTIONS_ENABLED);
  373. eventEmitter.removeAllListeners(ExternalAPI.TOGGLE_CAMERA);
  374. }
  375. /**
  376. * Registers for endpoint messages sent on conference data channel.
  377. *
  378. * @param {Store} store - The redux store.
  379. * @private
  380. * @returns {void}
  381. */
  382. function _registerForEndpointTextMessages(store: IStore) {
  383. const conference = getCurrentConference(store.getState());
  384. conference?.on(
  385. JitsiConferenceEvents.MESSAGE_RECEIVED,
  386. (id: string, message: string, timestamp: number) => {
  387. sendEvent(
  388. store,
  389. CHAT_MESSAGE_RECEIVED,
  390. /* data */ {
  391. senderId: id,
  392. message,
  393. isPrivate: false,
  394. timestamp
  395. });
  396. }
  397. );
  398. conference?.on(
  399. JitsiConferenceEvents.PRIVATE_MESSAGE_RECEIVED,
  400. (id: string, message: string, timestamp: number) => {
  401. sendEvent(
  402. store,
  403. CHAT_MESSAGE_RECEIVED,
  404. /* data */ {
  405. senderId: id,
  406. message,
  407. isPrivate: true,
  408. timestamp
  409. });
  410. }
  411. );
  412. }
  413. /**
  414. * Returns a {@code String} representation of a specific error {@code Object}.
  415. *
  416. * @param {Error|Object|string} error - The error {@code Object} to return a
  417. * {@code String} representation of.
  418. * @returns {string} A {@code String} representation of the specified
  419. * {@code error}.
  420. */
  421. function _toErrorString(
  422. error: Error | { message?: string; name?: string; } | string) {
  423. // XXX In lib-jitsi-meet and jitsi-meet we utilize errors in the form of
  424. // strings, Error instances, and plain objects which resemble Error.
  425. return (
  426. error
  427. ? typeof error === 'string'
  428. ? error
  429. : Error.prototype.toString.apply(error)
  430. : '');
  431. }
  432. /**
  433. * If {@link SET_ROOM} action happens for a valid conference room this method
  434. * will emit an early {@link CONFERENCE_WILL_JOIN} event to let the external API
  435. * know that a conference is being joined. Before that happens a connection must
  436. * be created and only then base/conference feature would emit
  437. * {@link CONFERENCE_WILL_JOIN}. That is fine for the Jitsi Meet app, because
  438. * that's the a conference instance gets created, but it's too late for
  439. * the external API to learn that. The latter {@link CONFERENCE_WILL_JOIN} is
  440. * swallowed in {@link _swallowEvent}.
  441. *
  442. * @param {Store} store - The redux store.
  443. * @param {Action} action - The redux action.
  444. * @returns {void}
  445. */
  446. function _maybeTriggerEarlyConferenceWillJoin(store: IStore, action: AnyAction) {
  447. const { locationURL } = store.getState()['features/base/connection'];
  448. const { room } = action;
  449. isRoomValid(room) && locationURL && sendEvent(
  450. store,
  451. CONFERENCE_WILL_JOIN,
  452. /* data */ {
  453. url: _normalizeUrl(locationURL)
  454. });
  455. }
  456. /**
  457. * Normalizes the given URL for presentation over the external API.
  458. *
  459. * @param {URL} url -The URL to normalize.
  460. * @returns {string} - The normalized URL as a string.
  461. */
  462. function _normalizeUrl(url: URL) {
  463. return getURLWithoutParams(url).href;
  464. }
  465. /**
  466. * Sends an event to the native counterpart of the External API for a specific
  467. * conference-related redux action.
  468. *
  469. * @param {Store} store - The redux store.
  470. * @param {Action} action - The redux action.
  471. * @returns {void}
  472. */
  473. function _sendConferenceEvent(
  474. store: IStore,
  475. action: {
  476. conference: IJitsiConference;
  477. isAudioMuted?: boolean;
  478. type: string;
  479. url?: string;
  480. }) {
  481. const { conference, type, ...data } = action;
  482. // For these (redux) actions, conference identifies a JitsiConference
  483. // instance. The external API cannot transport such an object so we have to
  484. // transport an "equivalent".
  485. if (conference) { // @ts-ignore
  486. data.url = _normalizeUrl(conference[JITSI_CONFERENCE_URL_KEY]);
  487. const localTracks = getLocalTracks(store.getState()['features/base/tracks']);
  488. const isAudioMuted = isLocalTrackMuted(localTracks, MEDIA_TYPE.AUDIO);
  489. data.isAudioMuted = isAudioMuted;
  490. }
  491. if (_swallowEvent(store, action, data)) {
  492. return;
  493. }
  494. let type_;
  495. switch (type) {
  496. case CONFERENCE_FAILED:
  497. case CONFERENCE_LEFT:
  498. type_ = CONFERENCE_TERMINATED;
  499. break;
  500. default:
  501. type_ = type;
  502. break;
  503. }
  504. sendEvent(store, type_, data);
  505. }
  506. /**
  507. * Determines whether to not send a {@code CONFERENCE_LEFT} event to the native
  508. * counterpart of the External API.
  509. *
  510. * @param {Object} store - The redux store.
  511. * @param {Action} action - The redux action which is causing the sending of the
  512. * event.
  513. * @param {Object} data - The details/specifics of the event to send determined
  514. * by/associated with the specified {@code action}.
  515. * @returns {boolean} If the specified event is to not be sent, {@code true};
  516. * otherwise, {@code false}.
  517. */
  518. function _swallowConferenceLeft({ getState }: IStore, action: AnyAction, { url }: { url: string; }) {
  519. // XXX Internally, we work with JitsiConference instances. Externally
  520. // though, we deal with URL strings. The relation between the two is many to
  521. // one so it's technically and practically possible (by externally loading
  522. // the same URL string multiple times) to try to send CONFERENCE_LEFT
  523. // externally for a URL string which identifies a JitsiConference that the
  524. // app is internally legitimately working with.
  525. let swallowConferenceLeft = false;
  526. url
  527. && forEachConference(getState, (conference, conferenceURL) => {
  528. if (conferenceURL && conferenceURL.toString() === url) {
  529. swallowConferenceLeft = true;
  530. }
  531. return !swallowConferenceLeft;
  532. });
  533. return swallowConferenceLeft;
  534. }
  535. /**
  536. * Determines whether to not send a specific event to the native counterpart of
  537. * the External API.
  538. *
  539. * @param {Object} store - The redux store.
  540. * @param {Action} action - The redux action which is causing the sending of the
  541. * event.
  542. * @param {Object} data - The details/specifics of the event to send determined
  543. * by/associated with the specified {@code action}.
  544. * @returns {boolean} If the specified event is to not be sent, {@code true};
  545. * otherwise, {@code false}.
  546. */
  547. function _swallowEvent(store: IStore, action: AnyAction, data: any) {
  548. switch (action.type) {
  549. case CONFERENCE_LEFT:
  550. return _swallowConferenceLeft(store, action, data);
  551. default:
  552. return false;
  553. }
  554. }