Hide closed subscriptions from drawer

parent 0772d78b
...@@ -63,7 +63,7 @@ public class SidebarMainFragment extends AbstractFragment { ...@@ -63,7 +63,7 @@ public class SidebarMainFragment extends AbstractFragment {
RealmHelper realmHelper = RealmStore.get(serverConfigId); RealmHelper realmHelper = RealmStore.get(serverConfigId);
if (realmHelper != null) { if (realmHelper != null) {
roomsObserver = realmHelper roomsObserver = realmHelper
.createListObserver(realm -> realm.where(RoomSubscription.class).findAll()) .createListObserver(realm -> realm.where(RoomSubscription.class).equalTo("open", true).findAll())
.setOnUpdateListener(list -> roomListManager.setRooms(list)); .setOnUpdateListener(list -> roomListManager.setRooms(list));
currentUserObserver = realmHelper currentUserObserver = realmHelper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment