mirror of https://github.com/jitsi/jitsi-meet
parent
59a9c2d947
commit
a1db63a8c2
@ -1,26 +0,0 @@ |
||||
/* @flow */ |
||||
|
||||
import { MiddlewareRegistry } from '../base/redux'; |
||||
|
||||
import { SUBMIT_FEEDBACK } from './actionTypes'; |
||||
|
||||
declare var APP: Object; |
||||
|
||||
/** |
||||
* Implements the middleware of the feature feedback. |
||||
* |
||||
* @param {Store} store - The redux store. |
||||
* @returns {Function} |
||||
*/ |
||||
// eslint-disable-next-line no-unused-vars
|
||||
MiddlewareRegistry.register(store => next => action => { |
||||
switch (action.type) { |
||||
case SUBMIT_FEEDBACK: |
||||
if (typeof APP === 'object') { |
||||
APP.API.notifyFeedbackSubmitted(); |
||||
} |
||||
break; |
||||
} |
||||
|
||||
return next(action); |
||||
}); |
Loading…
Reference in new issue