From eee9d6688e5c007c896e238785c345918650003f Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 19 May 2021 10:31:08 +1000 Subject: [PATCH] Debug --- .../messaging/sending_receiving/pollers/OpenGroupPollerV2.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/pollers/OpenGroupPollerV2.kt b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/pollers/OpenGroupPollerV2.kt index 8fb2f24cef..320c3afd97 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/pollers/OpenGroupPollerV2.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/pollers/OpenGroupPollerV2.kt @@ -36,7 +36,8 @@ class OpenGroupPollerV2(private val server: String, private val executorService: } fun poll(isBackgroundPoll: Boolean = false): Promise { - val rooms: List = listOf() + val storage = MessagingModuleConfiguration.shared.storage + val rooms = storage.getAllV2OpenGroups().values.filter { it.server == server }.map { it.room } return OpenGroupAPIV2.compactPoll(rooms, server).successBackground { responses -> responses.forEach { (room, response) -> val openGroupID = "$server.$room"