mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 18:07:49 +00:00
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
21 lines
630 B
JavaScript
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
|
|
});
|