mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 06:53:44 +00:00
Fix crash
This commit is contained in:
parent
53a58acbd5
commit
4e69a538cb
@ -24,8 +24,8 @@ class PublicChatManager(private val context: Context) {
|
||||
var areAllCaughtUp = true
|
||||
refreshChatsAndPollers()
|
||||
for ((threadID, chat) in chats) {
|
||||
val poller = pollers[threadID] ?: PublicChatPoller(context, chat)
|
||||
areAllCaughtUp = areAllCaughtUp && poller.isCaughtUp
|
||||
val poller = pollers[threadID]
|
||||
areAllCaughtUp = if(poller != null) areAllCaughtUp && poller.isCaughtUp else false
|
||||
}
|
||||
return areAllCaughtUp
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user