cache participant fetching at the mainscreen to speed it up

This commit is contained in:
tibbi 2020-04-09 18:35:01 +02:00
parent 0984449a76
commit 5185a98ca9
2 changed files with 17 additions and 5 deletions

View file

@ -61,7 +61,7 @@ class ThreadActivity : SimpleActivity() {
ensureBackgroundThread {
messages = getMessages(threadId)
participants = if (messages.isEmpty()) {
getThreadParticipants(threadId)
getThreadParticipants(threadId, null)
} else {
messages.first().participants
}