use isBareJid instead of getResourcePart().isEmpty()
This commit is contained in:
parent
eb9e988361
commit
56b4ac1751
|
@ -280,7 +280,7 @@ 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.getCounterpart() != null) {
|
if (message.getCounterpart() != null) {
|
||||||
if (!message.getCounterpart().getResourcepart().isEmpty()) {
|
if (!message.getCounterpart().isBareJid()) {
|
||||||
highlightInConference(message.getCounterpart().getResourcepart());
|
highlightInConference(message.getCounterpart().getResourcepart());
|
||||||
} else {
|
} else {
|
||||||
highlightInConference(message.getCounterpart().toString());
|
highlightInConference(message.getCounterpart().toString());
|
||||||
|
|
|
@ -304,7 +304,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
||||||
private String getDisplayedMucCounterpart(final Jid counterpart) {
|
private String getDisplayedMucCounterpart(final Jid counterpart) {
|
||||||
if (counterpart==null) {
|
if (counterpart==null) {
|
||||||
return "";
|
return "";
|
||||||
} else if (!counterpart.getResourcepart().isEmpty()) {
|
} else if (!counterpart.isBareJid()) {
|
||||||
return counterpart.getResourcepart();
|
return counterpart.getResourcepart();
|
||||||
} else {
|
} else {
|
||||||
return counterpart.toString();
|
return counterpart.toString();
|
||||||
|
|
Loading…
Reference in a new issue