move the duplicate message check inside already existing loop
@@ -3363,15 +3363,13 @@ abstract public class MobiComConversationFragment extends Fragment implements Vi
}
for (Message message : nextMessageList) {
+ if (initial && !messageList.contains(message)) {
+ messageList.add(message);
+ }
selfDestructMessage(message);
}
if (initial) {
- for (Message message : nextMessageList) {
- if (!messageList.contains(message)) {
- messageList.add(message);
- }
- }
recyclerDetailConversationAdapter.searchString = searchString;
emptyTextView.setVisibility(messageList.isEmpty() ? VISIBLE : View.GONE);
