properly show contact name in muc
This commit is contained in:
parent
3f43dc6d5f
commit
e745dae1dc
|
@ -519,10 +519,14 @@ public class UIHelper {
|
||||||
if (message.getStatus() == Message.STATUS_RECEIVED) {
|
if (message.getStatus() == Message.STATUS_RECEIVED) {
|
||||||
final Contact contact = message.getContact();
|
final Contact contact = message.getContact();
|
||||||
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
||||||
if (contact != null) {
|
String mucCounterpart = getDisplayedMucCounterpart(message.getCounterpart());
|
||||||
|
|
||||||
|
if (!mucCounterpart.isEmpty()) {
|
||||||
|
return mucCounterpart;
|
||||||
|
} else if (contact != null) {
|
||||||
return contact.getDisplayName();
|
return contact.getDisplayName();
|
||||||
} else {
|
} else {
|
||||||
return getDisplayedMucCounterpart(message.getCounterpart());
|
return mucCounterpart;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return contact != null ? contact.getDisplayName() : "";
|
return contact != null ? contact.getDisplayName() : "";
|
||||||
|
|
Loading…
Reference in a new issue