Fix threading

This commit is contained in:
Niels Andriesse 2019-11-18 16:35:57 +11:00
parent e17002c979
commit 8ccfa77ef6

View File

@ -204,7 +204,7 @@ class LokiPublicChatPoller(private val context: Context, private val group: Loki
}.toSet()
// Fetch the display names of the primary devices
displayNameUpdatees = displayNameUpdatees.union(newDisplayNameUpdatees)
}.success { messages ->
}.successBackground { messages ->
// Process messages in the background
messages.forEach { message ->
if (userDevices.contains(message.hexEncodedPublicKey)) {