clean up getProposedNick

This commit is contained in:
iNPUTmice 2014-12-03 00:00:25 +01:00
parent 9152e1ac95
commit 39a3f372dd
1 changed files with 5 additions and 6 deletions

View File

@ -281,16 +281,15 @@ public class MucOptions {
public String getProposedNick() {
if (conversation.getBookmark() != null
&& conversation.getBookmark().getNick() != null) {
&& conversation.getBookmark().getNick() != null
&& !conversation.getBookmark().getNick().isEmpty()) {
return conversation.getBookmark().getNick();
} else {
if (!conversation.getContactJid().isBareJid()) {
} else if (!conversation.getContactJid().isBareJid()) {
return conversation.getContactJid().getResourcepart();
} else {
return account.getUsername();
}
}
}
public String getActualNick() {
if (this.self.getName() != null) {