I use this code for joining to group in WhatsApp, but if I am already in a group, then after opening I receive a toast that I am already in a group. How just open group how to open a group without toast?
Intent intentWhatsAppGroup = new Intent(Intent.ACTION_VIEW); Uri uri =
Uri.parse("whatsapp://chat?code=***GroupID***");
intentWhatsAppGroup.setData(uri);
intentWhatsAppGroup.setPackage("com.whatsapp");
startActivity(intentWhatsAppGroup);