mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-05-02 00:34:53 +02:00
a1a52c4b42
Don't use abotars, as they are no longer used in Jitsi Meet.
20 lines
451 B
JavaScript
20 lines
451 B
JavaScript
// @flow
|
|
|
|
import { SET_EMAIL, SET_NAME } from './actionTypes';
|
|
import { setAvatarURL } from './actions';
|
|
import { getAvatarURL } from './functions';
|
|
|
|
export default (store: Object) => (next: Function) => (action: Object) => {
|
|
const result = next(action);
|
|
const state = store.getState();
|
|
|
|
switch (action.type) {
|
|
case SET_EMAIL:
|
|
case SET_NAME:
|
|
store.dispatch(setAvatarURL(getAvatarURL(state)));
|
|
|
|
}
|
|
|
|
return result;
|
|
};
|