mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
show name of forwarded in groups, keep title of forwarded messages in grey
This commit is contained in:
parent
ee33cdb7bc
commit
097da7c165
3 changed files with 12 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue