File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class IterableInAppManager {
31
31
getMessages ( ) : Promise < Array < IterableInAppMessage > > {
32
32
Iterable . logger . log ( "InAppManager.getMessages" )
33
33
34
- return RNIterableAPI . getInAppMessages ( ) . then ( ( messages : Array < any > ) => messages . map ( message => { return IterableInAppMessage . fromDict ( message ) } ) )
34
+ return RNIterableAPI . getInAppMessages ( )
35
35
}
36
36
37
37
/**
@@ -46,7 +46,7 @@ class IterableInAppManager {
46
46
getInboxMessages ( ) : Promise < Array < IterableInAppMessage > > {
47
47
Iterable . logger . log ( "InAppManager.getInboxMessages" )
48
48
49
- return RNIterableAPI . getInboxMessages ( ) . then ( ( messages : Array < any > ) => messages . map ( message => { return IterableInAppMessage . fromDict ( message ) } ) )
49
+ return RNIterableAPI . getInboxMessages ( )
50
50
}
51
51
52
52
/**
@@ -102,9 +102,6 @@ class IterableInAppManager {
102
102
Iterable . logger . log ( "InAppManager.getHtmlContentForMessage" )
103
103
104
104
return RNIterableAPI . getHtmlInAppContentForMessage ( message . messageId )
105
- . then ( ( content : any ) => {
106
- return IterableHtmlInAppContent . fromDict ( content )
107
- } )
108
105
}
109
106
110
107
/**
You can’t perform that action at this time.
0 commit comments