mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Add ui wiring for archive thumbnail support.
This commit is contained in:
@@ -71,6 +71,8 @@ abstract class Attachment(
|
||||
abstract val uri: Uri?
|
||||
abstract val publicUri: Uri?
|
||||
abstract val thumbnailUri: Uri?
|
||||
val displayUri: Uri?
|
||||
get() = uri ?: thumbnailUri
|
||||
|
||||
protected constructor(parcel: Parcel) : this(
|
||||
contentType = parcel.readString()!!,
|
||||
|
||||
@@ -172,7 +172,7 @@ class DatabaseAttachment : Attachment {
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return other != null &&
|
||||
other is DatabaseAttachment && other.attachmentId == attachmentId
|
||||
other is DatabaseAttachment && other.attachmentId == attachmentId && other.uri == uri
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
|
||||
Reference in New Issue
Block a user