fix: database update not deleting in certain circumstances, storage persisting and removing the volatile convo info for thread deletion / creation, NTS hidden getter values in shared library

This commit is contained in:
0x330a
2023-03-31 09:01:52 +11:00
parent f111513211
commit 38454bedfc
11 changed files with 207 additions and 66 deletions

View File

@@ -86,7 +86,9 @@ class OpenGroupPoller(private val server: String, private val executorService: S
isCaughtUp = true
}
}
executorService?.schedule(this@OpenGroupPoller::poll, pollInterval, TimeUnit.MILLISECONDS)
if (hasStarted) {
executorService?.schedule(this@OpenGroupPoller::poll, pollInterval, TimeUnit.MILLISECONDS)
}
}.fail {
updateCapabilitiesIfNeeded(isPostCapabilitiesRetry, it)
}.map { }
@@ -115,6 +117,7 @@ class OpenGroupPoller(private val server: String, private val executorService: S
roomToken: String,
pollInfo: OpenGroupApi.RoomPollInfo
) {
if (!hasStarted) return
val storage = MessagingModuleConfiguration.shared.storage
val groupId = "$server.$roomToken"
val dbGroupId = GroupUtil.getEncodedOpenGroupID(groupId.toByteArray())