mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Properly show group message header after a date divider.
This commit is contained in:
parent
0ced767ef2
commit
c7fb1d79c4
@ -702,7 +702,9 @@ public class ConversationItem extends LinearLayout
|
|||||||
|
|
||||||
private void setAuthor(@NonNull MessageRecord current, @NonNull Optional<MessageRecord> previous, @NonNull Optional<MessageRecord> next, boolean isGroupThread) {
|
private void setAuthor(@NonNull MessageRecord current, @NonNull Optional<MessageRecord> previous, @NonNull Optional<MessageRecord> next, boolean isGroupThread) {
|
||||||
if (isGroupThread && !current.isOutgoing()) {
|
if (isGroupThread && !current.isOutgoing()) {
|
||||||
if (!previous.isPresent() || previous.get().isUpdate() || !current.getRecipient().getAddress().equals(previous.get().getRecipient().getAddress())) {
|
if (!previous.isPresent() || previous.get().isUpdate() || !current.getRecipient().getAddress().equals(previous.get().getRecipient().getAddress()) ||
|
||||||
|
!DateUtils.isSameDay(previous.get().getTimestamp(), current.getTimestamp()))
|
||||||
|
{
|
||||||
groupSenderHolder.setVisibility(VISIBLE);
|
groupSenderHolder.setVisibility(VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
groupSenderHolder.setVisibility(GONE);
|
groupSenderHolder.setVisibility(GONE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user