|
@@ -24,8 +24,7 @@ import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
|
24
|
24
|
import StateListenerRegistry from '../base/redux/StateListenerRegistry';
|
25
|
25
|
import { playSound, registerSound, unregisterSound } from '../base/sounds/actions';
|
26
|
26
|
import { addGif } from '../gifs/actions';
|
27
|
|
-import { GIF_PREFIX } from '../gifs/constants';
|
28
|
|
-import { getGifDisplayMode, isGifEnabled, isGifMessage } from '../gifs/function.any';
|
|
27
|
+import { extractGifURL, getGifDisplayMode, isGifEnabled, isGifMessage } from '../gifs/function.any';
|
29
|
28
|
import { showMessageNotification } from '../notifications/actions';
|
30
|
29
|
import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';
|
31
|
30
|
import { resetNbUnreadPollsMessages } from '../polls/actions';
|
|
@@ -351,7 +350,7 @@ function _onConferenceMessageReceived(store: IStore,
|
351
|
350
|
* @returns {void}
|
352
|
351
|
*/
|
353
|
352
|
function _handleGifMessageReceived(store: IStore, participantId: string, message: string) {
|
354
|
|
- const url = message.substring(GIF_PREFIX.length, message.length - 1);
|
|
353
|
+ const url = extractGifURL(message);
|
355
|
354
|
|
356
|
355
|
store.dispatch(addGif(participantId, url));
|
357
|
356
|
}
|