Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

654 B
Raw Blame
import { GiphySDK } from '@giphy/react-native-sdk';

import StateListenerRegistry from '../base/redux/StateListenerRegistry';

import { getGifConfig, isGifEnabled } from './function.any';

/**
 * Listens for changes in the number of participants to calculate the dimensions of the tile view grid and the tiles.
 */
StateListenerRegistry.register(
    /* selector */ state => getGifConfig(state),
    /* listener */ (_, store) => {
        const state = store.getState();

        if (isGifEnabled(state)) {
            GiphySDK.configure({ apiKey: state['features/base/config'].giphy?.sdkKey ?? '' });
        }
    }, {
        deepEquals: true
    });