Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DenBond7 committed Aug 5, 2024
1 parent e253b1e commit f336092
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ data class MessageEntity(
@ColumnInfo(name = "label_ids", defaultValue = "NULL") val labelIds: String? = null,
@ColumnInfo(name = "is_encrypted", defaultValue = "-1") val isEncrypted: Boolean? = null,
@ColumnInfo(name = "has_pgp", defaultValue = "0") val hasPgp: Boolean? = null,
@ColumnInfo(name = "thread_messages_count", defaultValue = "NULL") val threadMessagesCount: Int? = null,
) : Parcelable {

@IgnoredOnParcel
Expand Down Expand Up @@ -199,6 +200,7 @@ data class MessageEntity(
if (labelIds != other.labelIds) return false
if (isEncrypted != other.isEncrypted) return false
if (hasPgp != other.hasPgp) return false
if (threadMessagesCount != other.threadMessagesCount) return false

return true
}
Expand Down Expand Up @@ -229,6 +231,7 @@ data class MessageEntity(
result = 31 * result + (labelIds?.hashCode() ?: 0)
result = 31 * result + (isEncrypted?.hashCode() ?: 0)
result = 31 * result + (hasPgp?.hashCode() ?: 0)
result = 31 * result + (threadMessagesCount?.hashCode() ?: 0)
return result
}

Expand Down
2 changes: 1 addition & 1 deletion FlowCrypt/src/main/res/layout/messages_list_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/default_margin_content_small"
android:ellipsize="end"
android:ellipsize="middle"
android:maxLines="1"
android:textColor="?attr/itemTitleColor"
android:textSize="@dimen/default_text_size_big"
Expand Down

0 comments on commit f336092

Please sign in to comment.