Skip to content

Commit

Permalink
chore(ShareIntent): indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdeol committed Jul 11, 2019
1 parent e4a1502 commit 43fe0b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions android/src/main/java/cl/json/social/ShareIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ public void open(ReadableMap options) throws ActivityNotFoundException {
if (ShareIntent.hasValidKey("message", options)) {
message = options.getString("message");
}

String socialType = options.getString("social");

if(socialType.equals("whatsapp")) {
if (socialType.equals("whatsapp")) {
String whatsAppNumber = options.getString("whatsAppNumber");
if(!whatsAppNumber.isEmpty()) {
String chatAddress = whatsAppNumber + "@s.whatsapp.net";
this.getIntent().putExtra("jid",chatAddress);
if (!whatsAppNumber.isEmpty()) {
String chatAddress = whatsAppNumber + "@s.whatsapp.net";
this.getIntent().putExtra("jid", chatAddress);
}
}


if (ShareIntent.hasValidKey("urls", options)) {

ShareFiles fileShare = getFileShares(options);
Expand Down

0 comments on commit 43fe0b5

Please sign in to comment.