mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
Handle temporary threads in conversations details
This commit is contained in:
@@ -34,7 +34,12 @@ class ConversationDetailsActivity : SimpleActivity() {
|
|||||||
threadId = intent.getLongExtra(THREAD_ID, 0L)
|
threadId = intent.getLongExtra(THREAD_ID, 0L)
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
conversation = conversationsDB.getConversationWithThreadId(threadId)
|
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 {
|
runOnUiThread {
|
||||||
setupTextViews()
|
setupTextViews()
|
||||||
setupParticipants()
|
setupParticipants()
|
||||||
|
Reference in New Issue
Block a user