mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-20 18:38:28 +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
|
var areAllCaughtUp = true
|
||||||
refreshChatsAndPollers()
|
refreshChatsAndPollers()
|
||||||
for ((threadID, chat) in chats) {
|
for ((threadID, chat) in chats) {
|
||||||
val poller = pollers[threadID] ?: PublicChatPoller(context, chat)
|
val poller = pollers[threadID]
|
||||||
areAllCaughtUp = areAllCaughtUp && poller.isCaughtUp
|
areAllCaughtUp = if(poller != null) areAllCaughtUp && poller.isCaughtUp else false
|
||||||
}
|
}
|
||||||
return areAllCaughtUp
|
return areAllCaughtUp
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user