Fix contact highlighting in MUC

This commit is contained in:
Sam Whited 2014-11-09 07:20:08 -05:00
parent fc594e9b73
commit 7cfcf10f48

View file

@ -280,10 +280,10 @@ public class ConversationFragment extends Fragment {
if (message.getStatus() <= Message.STATUS_RECEIVED) { if (message.getStatus() <= Message.STATUS_RECEIVED) {
if (message.getConversation().getMode() == Conversation.MODE_MULTI) { if (message.getConversation().getMode() == Conversation.MODE_MULTI) {
if (message.getPresence() != null) { if (message.getPresence() != null) {
highlightInConference(message.getPresence().toString()); highlightInConference(message.getPresence().getResourcepart());
} else { } else {
highlightInConference(message highlightInConference(message
.getCounterpart().toString()); .getContact().getDisplayName());
} }
} else { } else {
Contact contact = message.getConversation() Contact contact = message.getConversation()