snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
20
react/features/gifs/subscriber.native.ts
Normal file
20
react/features/gifs/subscriber.native.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
});
|
||||
Reference in New Issue
Block a user