mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-23 05:06:44 +00:00
feat: add in activity finish if recipient no longer exists (deleted thread) from sync
This commit is contained in:
@@ -138,7 +138,7 @@ class Poller(private val configFactory: ConfigFactoryProtocol, debounceTimer: Ti
|
||||
namespace,
|
||||
updateLatestHash = true,
|
||||
updateStoredHashes = true,
|
||||
) // TODO: might not be needed anymore .filter { (_, hash) -> !forConfigObject.currentHashes().contains(hash) }
|
||||
)
|
||||
|
||||
if (messages.isEmpty()) {
|
||||
// no new messages to process
|
||||
@@ -186,12 +186,6 @@ class Poller(private val configFactory: ConfigFactoryProtocol, debounceTimer: Ti
|
||||
requestSparseArray[request.namespace!!] = request
|
||||
}
|
||||
|
||||
if (requestSparseArray.size() == 1) {
|
||||
// only one (the personal messages)
|
||||
Log.d("Loki-DBG", "Not building requests for the configs, current config state:")
|
||||
Log.d("Loki-DBG", "${listOf(configFactory.user, configFactory.contacts, configFactory.convoVolatile)}")
|
||||
}
|
||||
|
||||
val requests = requestSparseArray.valueIterator().asSequence().toList()
|
||||
|
||||
SnodeAPI.getRawBatchResponse(snode, userPublicKey, requests).bind { rawResponses ->
|
||||
|
||||
Reference in New Issue
Block a user