Skip to content

Commit eeb8783

Browse files
committed
Handle temporary threads in conversations details
1 parent c94b885 commit eeb8783

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ class ConversationDetailsActivity : SimpleActivity() {
3434
threadId = intent.getLongExtra(THREAD_ID, 0L)
3535
ensureBackgroundThread {
3636
conversation = conversationsDB.getConversationWithThreadId(threadId)
37-
participants = getThreadParticipants(threadId, null)
37+
participants = if (conversation != null && conversation!!.isScheduled) {
38+
val message = messagesDB.getThreadMessages(conversation!!.threadId).firstOrNull()
39+
message?.participants ?: arrayListOf()
40+
} else {
41+
getThreadParticipants(threadId, null)
42+
}
3843
runOnUiThread {
3944
setupTextViews()
4045
setupParticipants()

0 commit comments

Comments
 (0)