@@ -43,6 +43,8 @@ import CallLog from 'ringcentral-integration/modules/CallLog';
4343import CallMonitor from 'ringcentral-integration/modules/CallMonitor' ;
4444import CallHistory from 'ringcentral-integration/modules/CallHistory' ;
4545
46+ import ContactMatcher from 'ringcentral-integration/modules/ContactMatcher' ;
47+
4648import RouterInteraction from '../src/modules/RouterInteraction' ;
4749
4850export default class Phone extends RcModule {
@@ -366,7 +368,11 @@ export default class Phone extends RcModule {
366368 contactMatcher : this . contactMatcher ,
367369 getState : ( ) => this . state . callHistory ,
368370 } ) ) ;
369-
371+ this . addModule ( 'contactMatcher' , new ContactMatcher ( {
372+ ...options ,
373+ storage : this . storage ,
374+ getState : ( ) => this . state . contactMatcher ,
375+ } ) ) ;
370376 this . _reducer = combineReducers ( {
371377 accountExtension : this . accountExtension . reducer ,
372378 accountInfo : this . accountInfo . reducer ,
@@ -409,6 +415,7 @@ export default class Phone extends RcModule {
409415 callLog : this . callLog . reducer ,
410416 callMonitor : this . callMonitor . reducer ,
411417 callHistory : this . callHistory . reducer ,
418+ contactMatcher : this . contactMatcher . reducer ,
412419 lastAction : ( state = null , action ) => {
413420 console . log ( action ) ;
414421 return action ;
0 commit comments