Search code examples
androidapplozic

Avoid show recent conversation list when back from ConversationActivity


After installing Applozic everything is correct and works very well, but when the user clicks back on the ConversationActivity, the list of their conversations is displayed. When the user presses back again, then the activity previous to the chat is shown.

In my case the list of conversations is not necessary. Is it possible to avoid this step? I have searched in JSON configuration file but I do not think any option solves my problem.


Solution

  • For this you need to pass flag in intent intent.putExtra(ConversationUIService.TAKE_ORDER, true); if this flag is true then list of conversations will be not show after back press when you launch chat with intent

                Intent intent = new Intent(context, ConversationActivity.class);
                intent.putExtra(ConversationUIService.TAKE_ORDER, true);//flag to disable list after back press  
                intent.putExtra(ConversationUIService.USER_ID, "userId");
                intent.putExtra(ConversationUIService.DISPLAY_NAME, "display name");
                startActivity(intent);