Fix inbox conversation mapping. Fixes #1223

This commit is contained in:
Phillip Thelen 2019-09-19 09:53:13 +02:00
parent 06fd4d191e
commit 6cffeaf1c6
3 changed files with 6 additions and 2 deletions

View file

@ -148,7 +148,7 @@ android {
buildConfigField "String", "TESTING_LEVEL", "\"production\""
multiDexEnabled true
versionCode 2242
versionCode 2243
versionName "2.1.1"
}

View file

@ -9,6 +9,11 @@ open class InboxConversation : RealmObject() {
@PrimaryKey
var combinedID: String = ""
set(value) {
field = value
userStyles?.id = value
contributor?.userId = value
}
var uuid: String = ""
set(value) {
field = value

View file

@ -129,7 +129,6 @@ class InboxOverviewFragment : BaseMainFragment(), androidx.swiperefreshlayout.wi
val entry = inflater?.inflate(R.layout.item_inbox_overview, inbox_messages, false)
val avatarView = entry?.findViewById(R.id.avatar_view) as? AvatarView
message.userStyles?.let { avatarView?.setAvatar(it) }
avatarView?.visibility = View.GONE
val displayNameTextView = entry?.findViewById(R.id.display_name_textview) as? UsernameLabel
displayNameTextView?.username = message.user
displayNameTextView?.tier = message.contributor?.level ?: 0