mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-03-02 18:37:46 +01:00
Handle temporary threads in conversations details
This commit is contained in:
parent
c94b8852cd
commit
eeb87836e2
@ -34,7 +34,12 @@ class ConversationDetailsActivity : SimpleActivity() {
|
||||
threadId = intent.getLongExtra(THREAD_ID, 0L)
|
||||
ensureBackgroundThread {
|
||||
conversation = conversationsDB.getConversationWithThreadId(threadId)
|
||||
participants = getThreadParticipants(threadId, null)
|
||||
participants = if (conversation != null && conversation!!.isScheduled) {
|
||||
val message = messagesDB.getThreadMessages(conversation!!.threadId).firstOrNull()
|
||||
message?.participants ?: arrayListOf()
|
||||
} else {
|
||||
getThreadParticipants(threadId, null)
|
||||
}
|
||||
runOnUiThread {
|
||||
setupTextViews()
|
||||
setupParticipants()
|
||||
|
Loading…
x
Reference in New Issue
Block a user