From 8ccfa77ef650745257ae0fe61a42dd01d5e4075a Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Mon, 18 Nov 2019 16:35:57 +1100 Subject: [PATCH] Fix threading --- src/org/thoughtcrime/securesms/loki/LokiPublicChatPoller.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/loki/LokiPublicChatPoller.kt b/src/org/thoughtcrime/securesms/loki/LokiPublicChatPoller.kt index d2cd777e63..756a7ebc6b 100644 --- a/src/org/thoughtcrime/securesms/loki/LokiPublicChatPoller.kt +++ b/src/org/thoughtcrime/securesms/loki/LokiPublicChatPoller.kt @@ -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)) {