mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-26 08:48:53 +00:00
Fix issue with group avatar display.
Some legacy code was making the contact photo visible when it shouldn't be.
This commit is contained in:
@@ -558,13 +558,7 @@ public class ConversationItem extends LinearLayout
|
|||||||
|
|
||||||
private void setContactPhoto(@NonNull Recipient recipient) {
|
private void setContactPhoto(@NonNull Recipient recipient) {
|
||||||
if (contactPhoto == null) return;
|
if (contactPhoto == null) return;
|
||||||
|
|
||||||
if (messageRecord.isOutgoing() || !groupThread) {
|
|
||||||
contactPhoto.setVisibility(View.GONE);
|
|
||||||
} else {
|
|
||||||
contactPhoto.setAvatar(glideRequests, recipient, true);
|
contactPhoto.setAvatar(glideRequests, recipient, true);
|
||||||
contactPhoto.setVisibility(View.VISIBLE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private SpannableString linkifyMessageBody(SpannableString messageBody, boolean shouldLinkifyAllLinks) {
|
private SpannableString linkifyMessageBody(SpannableString messageBody, boolean shouldLinkifyAllLinks) {
|
||||||
|
|||||||
Reference in New Issue
Block a user