forked from upstream-mirrors/quik
store recipient model instead of recipients string in conversation
This commit is contained in:
@@ -30,7 +30,15 @@ class ConversationAdapter(context: Context, data: OrderedRealmCollection<Convers
|
||||
mContext.startActivity(intent)
|
||||
}
|
||||
|
||||
viewHolder.title.text = conversation?.recipientIds.toString()
|
||||
var title = ""
|
||||
conversation?.recipients?.forEachIndexed { index, recipient ->
|
||||
title += recipient.id
|
||||
if (index < conversation.recipients.size - 1) {
|
||||
title += ", "
|
||||
}
|
||||
}
|
||||
|
||||
viewHolder.title.text = title
|
||||
viewHolder.snippet.text = conversation?.snippet
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user