mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Fix message clustering bug
This commit is contained in:
parent
b25feb221a
commit
073c9a9efa
@ -164,10 +164,10 @@ class VisibleMessageView : LinearLayout {
|
||||
|
||||
private fun isStartOfMessageCluster(current: MessageRecord, previous: MessageRecord?, isGroupThread: Boolean): Boolean {
|
||||
return if (isGroupThread) {
|
||||
previous == null || previous.isUpdate || !DateUtils.isSameDay(current.timestamp, previous.timestamp)
|
||||
previous == null || previous.isUpdate || !DateUtils.isSameHour(current.timestamp, previous.timestamp)
|
||||
|| current.recipient.address != previous.recipient.address
|
||||
} else {
|
||||
previous == null || previous.isUpdate || !DateUtils.isSameDay(current.timestamp, previous.timestamp)
|
||||
previous == null || previous.isUpdate || !DateUtils.isSameHour(current.timestamp, previous.timestamp)
|
||||
|| current.isOutgoing != previous.isOutgoing
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user