mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-17 14:25:12 -05:00
clean up getProposedNick
This commit is contained in:
parent
9152e1ac95
commit
39a3f372dd
@ -281,16 +281,15 @@ public class MucOptions {
|
|||||||
|
|
||||||
public String getProposedNick() {
|
public String getProposedNick() {
|
||||||
if (conversation.getBookmark() != null
|
if (conversation.getBookmark() != null
|
||||||
&& conversation.getBookmark().getNick() != null) {
|
&& conversation.getBookmark().getNick() != null
|
||||||
|
&& !conversation.getBookmark().getNick().isEmpty()) {
|
||||||
return conversation.getBookmark().getNick();
|
return conversation.getBookmark().getNick();
|
||||||
} else {
|
} else if (!conversation.getContactJid().isBareJid()) {
|
||||||
if (!conversation.getContactJid().isBareJid()) {
|
|
||||||
return conversation.getContactJid().getResourcepart();
|
return conversation.getContactJid().getResourcepart();
|
||||||
} else {
|
} else {
|
||||||
return account.getUsername();
|
return account.getUsername();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public String getActualNick() {
|
public String getActualNick() {
|
||||||
if (this.self.getName() != null) {
|
if (this.self.getName() != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user