@@ -43,6 +43,8 @@ import CallLog from 'ringcentral-integration/modules/CallLog';
43
43
import CallMonitor from 'ringcentral-integration/modules/CallMonitor' ;
44
44
import CallHistory from 'ringcentral-integration/modules/CallHistory' ;
45
45
46
+ import ContactMatcher from 'ringcentral-integration/modules/ContactMatcher' ;
47
+
46
48
import RouterInteraction from '../src/modules/RouterInteraction' ;
47
49
48
50
export default class Phone extends RcModule {
@@ -366,7 +368,11 @@ export default class Phone extends RcModule {
366
368
contactMatcher : this . contactMatcher ,
367
369
getState : ( ) => this . state . callHistory ,
368
370
} ) ) ;
369
-
371
+ this . addModule ( 'contactMatcher' , new ContactMatcher ( {
372
+ ...options ,
373
+ storage : this . storage ,
374
+ getState : ( ) => this . state . contactMatcher ,
375
+ } ) ) ;
370
376
this . _reducer = combineReducers ( {
371
377
accountExtension : this . accountExtension . reducer ,
372
378
accountInfo : this . accountInfo . reducer ,
@@ -409,6 +415,7 @@ export default class Phone extends RcModule {
409
415
callLog : this . callLog . reducer ,
410
416
callMonitor : this . callMonitor . reducer ,
411
417
callHistory : this . callHistory . reducer ,
418
+ contactMatcher : this . contactMatcher . reducer ,
412
419
lastAction : ( state = null , action ) => {
413
420
console . log ( action ) ;
414
421
return action ;
0 commit comments