Show the correct sender name in mailing list messages

This commit is contained in:
Hocuri 2021-02-10 20:57:33 +01:00 committed by bjoern
parent 406bb9a6ee
commit 3b8f3e7628
3 changed files with 3 additions and 3 deletions

View file

@ -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));
jstring ret = NULL;
if (temp) {
JSTRING_NEW(temp);
ret = JSTRING_NEW(temp);
}
dc_str_unref(temp);
return ret; // null if there is no override-sender-name

View file

@ -428,7 +428,7 @@ public class ConversationFragment extends Fragment
if (msg.getFromId() != prevMsg.getFromId() && !singleMsg) {
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())) {
result.append(msg.getText());

View file

@ -159,7 +159,7 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
quoteBarView.setBackgroundColor(getForwardedColor());
} else {
authorView.setVisibility(VISIBLE);
authorView.setText(contact.getDisplayName());
authorView.setText(quotedMsg.getSenderName(contact));
authorView.setTextColor(contact.getArgbColor());
quoteBarView.setBackgroundColor(contact.getArgbColor());
}