mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 17:59:39 +02:00
Show the correct sender name in mailing list messages
This commit is contained in:
parent
406bb9a6ee
commit
3b8f3e7628
3 changed files with 3 additions and 3 deletions
|
@ -1302,7 +1302,7 @@ JNIEXPORT jstring Java_com_b44t_messenger_DcMsg_getOverrideSenderName(JNIEnv *en
|
||||||
char* temp = dc_msg_get_override_sender_name(get_dc_msg(env, obj));
|
char* temp = dc_msg_get_override_sender_name(get_dc_msg(env, obj));
|
||||||
jstring ret = NULL;
|
jstring ret = NULL;
|
||||||
if (temp) {
|
if (temp) {
|
||||||
JSTRING_NEW(temp);
|
ret = JSTRING_NEW(temp);
|
||||||
}
|
}
|
||||||
dc_str_unref(temp);
|
dc_str_unref(temp);
|
||||||
return ret; // null if there is no override-sender-name
|
return ret; // null if there is no override-sender-name
|
||||||
|
|
|
@ -428,7 +428,7 @@ public class ConversationFragment extends Fragment
|
||||||
|
|
||||||
if (msg.getFromId() != prevMsg.getFromId() && !singleMsg) {
|
if (msg.getFromId() != prevMsg.getFromId() && !singleMsg) {
|
||||||
DcContact contact = dcContext.getContact(msg.getFromId());
|
DcContact contact = dcContext.getContact(msg.getFromId());
|
||||||
result.append(contact.getDisplayName()).append(":\n");
|
result.append(msg.getSenderName(contact)).append(":\n");
|
||||||
}
|
}
|
||||||
if (msg.getType() == DcMsg.DC_MSG_TEXT || (singleMsg && !msg.getText().isEmpty())) {
|
if (msg.getType() == DcMsg.DC_MSG_TEXT || (singleMsg && !msg.getText().isEmpty())) {
|
||||||
result.append(msg.getText());
|
result.append(msg.getText());
|
||||||
|
|
|
@ -159,7 +159,7 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
|
||||||
quoteBarView.setBackgroundColor(getForwardedColor());
|
quoteBarView.setBackgroundColor(getForwardedColor());
|
||||||
} else {
|
} else {
|
||||||
authorView.setVisibility(VISIBLE);
|
authorView.setVisibility(VISIBLE);
|
||||||
authorView.setText(contact.getDisplayName());
|
authorView.setText(quotedMsg.getSenderName(contact));
|
||||||
authorView.setTextColor(contact.getArgbColor());
|
authorView.setTextColor(contact.getArgbColor());
|
||||||
quoteBarView.setBackgroundColor(contact.getArgbColor());
|
quoteBarView.setBackgroundColor(contact.getArgbColor());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue