Skip to content

Commit

Permalink
added displayMessenger for iOS (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
victordahlin authored and jtreanor committed Aug 18, 2016
1 parent cd11b2f commit d2bb26e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ios/IntercomBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

- (void)unreadConversationCount:(CDVInvokedUrlCommand*)command;

- (void)displayMessenger:(CDVInvokedUrlCommand*)command;
- (void)displayMessageComposer:(CDVInvokedUrlCommand*)command;
- (void)displayConversationsList:(CDVInvokedUrlCommand*)command ;

Expand Down
5 changes: 5 additions & 0 deletions src/ios/IntercomBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ - (void)unreadConversationCount:(CDVInvokedUrlCommand*)command {
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

- (void)displayMessenger:(CDVInvokedUrlCommand*)command {
[Intercom presentMessenger];
[self sendSuccess:command];
}

- (void)displayMessageComposer:(CDVInvokedUrlCommand*)command {
[Intercom presentMessageComposer];
[self sendSuccess:command];
Expand Down

0 comments on commit d2bb26e

Please sign in to comment.