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
commit a307a8e207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)) {