mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 16:17:43 +00:00
refactor: compact polling and usage based polling
This commit is contained in:
@@ -54,7 +54,7 @@ class PublicChatManager(private val context: Context) {
|
||||
if (!pollers.containsKey(threadId)) { pollers[threadId] = poller }
|
||||
}
|
||||
for ((threadId, chat) in v2Chats) {
|
||||
val poller = v2Pollers[threadId] ?: OpenGroupV2Poller(chat, executorService)
|
||||
val poller = v2Pollers[threadId] ?: OpenGroupV2Poller(listOf(chat), executorService)
|
||||
poller.startIfNeeded()
|
||||
listenToThreadDeletion(threadId)
|
||||
if (!v2Pollers.containsKey(threadId)) { v2Pollers[threadId] = poller }
|
||||
|
Reference in New Issue
Block a user