Skip to content

Commit

Permalink
hide blocked chats
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Sep 11, 2019
1 parent f0ef6dc commit 65fdf75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/co/tinode/tindroid/ChatsAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ public class ChatsAdapter extends RecyclerView.Adapter<ChatsAdapter.ViewHolder>
}

void resetContent(Activity activity, final boolean archive) {
if (activity == null) {
return;
}

final List<ComTopic<VxCard>> newTopics = Cache.getTinode().getFilteredTopics(new TopicFilter() {
@Override
public boolean isIncluded(Topic t) {
return t.getTopicType().match(Topic.TopicType.USER) &&
(t.isArchived() == archive);
(t.isArchived() == archive) && t.isJoiner();
}
});

Expand Down

0 comments on commit 65fdf75

Please sign in to comment.