Fix issue where message sender was impacting bubble color in groups.

This commit is contained in:
Alex Hart 2021-05-26 09:28:55 -03:00
parent fb1b46b67e
commit 23e5da4d95
2 changed files with 5 additions and 2 deletions

View file

@ -203,7 +203,7 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
}
private void setQuoteAuthor(@NonNull Recipient author) {
boolean outgoing = messageType == MESSAGE_TYPE_OUTGOING;
boolean outgoing = messageType != MESSAGE_TYPE_INCOMING;
authorView.setText(author.isSelf() ? getContext().getString(R.string.QuoteView_you)
: author.getDisplayName(getContext()));

View file

@ -398,7 +398,10 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
@Override
public void onRecipientChanged(@NonNull Recipient modified) {
setBubbleState(messageRecord, modified, modified.hasWallpaper(), colorizer);
if (conversationRecipient.getId().equals(modified.getId())) {
setBubbleState(messageRecord, modified, modified.hasWallpaper(), colorizer);
}
if (recipient.getId().equals(modified.getId())) {
setContactPhoto(modified);
setGroupMessageStatus(messageRecord, modified);