Files
jitsi-meet/react/features/gifs/subscriber.native.js
Robert Pintilii 1355876f83 feat(gif, rn) Added GIPHY integration on native (#11236)
Update Android build to support gif
Use GIF format instead of animated webp
Show GIFs in chat messages
Display GIF over tile
Add Giphy button in reactions menu
Added Giphy dialog
Fix isGifMessage to also allow upper case
2022-03-30 16:54:03 +03:00

21 lines
630 B
JavaScript

import { GiphySDK } from '@giphy/react-native-sdk';
import { StateListenerRegistry } from '../base/redux';
import { isGifEnabled } from './functions';
/**
* Listens for changes in the number of participants to calculate the dimensions of the tile view grid and the tiles.
*/
StateListenerRegistry.register(
/* selector */ state => state['features/base/config']?.giphy,
/* listener */ (_, store) => {
const state = store.getState();
if (isGifEnabled(state)) {
GiphySDK.configure({ apiKey: state['features/base/config'].giphy?.sdkKey });
}
}, {
deepEquals: true
});