Skip to content

Commit 52a694a

Browse files
committed
Update message type after fetching participants
1 parent dd22467 commit 52a694a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/ThreadActivity.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import android.provider.Telephony
1515
import android.telephony.SmsMessage
1616
import android.telephony.SubscriptionManager
1717
import android.text.TextUtils
18+
import android.util.Log
1819
import android.util.TypedValue
1920
import android.view.*
2021
import android.view.inputmethod.EditorInfo
@@ -244,6 +245,7 @@ class ThreadActivity : SimpleActivity() {
244245

245246
setupThreadTitle()
246247
setupSIMSelector()
248+
updateMessageType()
247249
callback()
248250
}
249251
}
@@ -312,7 +314,6 @@ class ThreadActivity : SimpleActivity() {
312314
runOnUiThread {
313315
setupThreadTitle()
314316
setupSIMSelector()
315-
updateMessageType()
316317
}
317318
}
318319
}
@@ -442,8 +443,8 @@ class ThreadActivity : SimpleActivity() {
442443
numbers.add(it.normalizedNumber)
443444
}
444445
}
445-
446446
val newThreadId = getThreadId(numbers)
447+
Log.d(this::class.java.simpleName, "participants: ${numbers.size}")
447448
if (threadId != newThreadId) {
448449
hideKeyboard()
449450
Intent(this, ThreadActivity::class.java).apply {

0 commit comments

Comments
 (0)