Merge pull request #2 from loki-project/dev

Fix threading
This commit is contained in:
RyanZhao
2019-11-18 16:54:18 +11:00
committed by GitHub

View File

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