show name of forwarded in groups, keep title of forwarded messages in grey

This commit is contained in:
B. Petersen 2021-02-07 21:55:41 +01:00 committed by bjoern
parent ee33cdb7bc
commit 097da7c165
3 changed files with 12 additions and 3 deletions

View file

@ -143,8 +143,13 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
authorView.setVisibility(GONE);
quoteBarView.setBackgroundColor(getForwardedColor());
} else if (quotedMsg.isForwarded()) {
DcContact contact = author.getDcContact();
authorView.setVisibility(VISIBLE);
authorView.setText(getContext().getString(R.string.forwarded_message));
if (contact == null) {
authorView.setText(getContext().getString(R.string.forwarded_message));
} else {
authorView.setText(getContext().getString(R.string.forwarded_by, quotedMsg.getSenderName(contact)));
}
authorView.setTextColor(getForwardedColor());
quoteBarView.setBackgroundColor(getForwardedColor());
} else {