mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
Fix inbox conversation mapping. Fixes #1223
This commit is contained in:
parent
06fd4d191e
commit
6cffeaf1c6
3 changed files with 6 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ android {
|
|||
buildConfigField "String", "TESTING_LEVEL", "\"production\""
|
||||
multiDexEnabled true
|
||||
|
||||
versionCode 2242
|
||||
versionCode 2243
|
||||
versionName "2.1.1"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue