From ec20dcadeb24c3f51110d2067ba6db31d7ac9185 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 18 Jan 2021 17:06:29 +0100 Subject: [PATCH] fix #134, properly send messages in new conversations --- .../simplemobiletools/smsmessenger/activities/ThreadActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt index 881af882..7023e7d4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt @@ -111,7 +111,7 @@ class ThreadActivity : SimpleActivity() { ensureBackgroundThread { val cachedMessagesCode = messages.hashCode() messages = getMessages(threadId) - if (messages.hashCode() == cachedMessagesCode) { + if (messages.hashCode() == cachedMessagesCode && participants.isNotEmpty()) { return@ensureBackgroundThread }