Auto close thread

pull/145/head
M66B 6 years ago
parent 07f6d33efd
commit 4e991b0bf7

@ -646,7 +646,8 @@ public class FragmentMessages extends FragmentEx {
messages.observe(getViewLifecycleOwner(), new Observer<PagedList<TupleMessageEx>>() {
@Override
public void onChanged(@Nullable PagedList<TupleMessageEx> messages) {
if (messages == null) {
if (messages == null ||
(viewType == AdapterMessage.ViewType.THREAD && messages.size() == 0)) {
finish();
return;
}

Loading…
Cancel
Save