Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-08-09 21:18:10 +02:00
parent 195c70606f
commit 7f63476669

View file

@ -43,7 +43,6 @@ import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.EditorInfo;
import android.widget.AbsListView;
import android.widget.ImageView;
import android.widget.ProgressBar;
@ -756,18 +755,6 @@ public class ChatController extends BaseController implements MessagesListAdapte
}
} else {
boolean foundRealMessage = false;
if (conversationUser.hasSpreedCapabilityWithName("system-messages")) {
for (int i = 0; i < chatMessageList.size(); i++) {
if (TextUtils.isEmpty(chatMessageList.get(i).getSystemMessage())) {
foundRealMessage = true;
break;
}
}
}
if (foundRealMessage) {
if (emptyLayout != null) {
emptyLayout.setVisibility(View.GONE);
}
@ -775,15 +762,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
if (messagesListView != null) {
messagesListView.setVisibility(View.VISIBLE);
}
} else {
if (emptyLayout != null && emptyLayout.getVisibility() != View.VISIBLE) {
emptyLayout.setVisibility(View.VISIBLE);
}
if (messagesListView != null && messagesListView.getVisibility() != View.GONE) {
messagesListView.setVisibility(View.GONE);
}
}
}
} else {
if (emptyLayout != null) {