trim nick from bookmark before checking if it's empty
This commit is contained in:
parent
e26d842549
commit
7398424f3b
|
@ -504,8 +504,8 @@ 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()) {
|
&& !conversation.getBookmark().getNick().trim().isEmpty()) {
|
||||||
return conversation.getBookmark().getNick();
|
return conversation.getBookmark().getNick().trim();
|
||||||
} else if (!conversation.getJid().isBareJid()) {
|
} else if (!conversation.getJid().isBareJid()) {
|
||||||
return conversation.getJid().getResourcepart();
|
return conversation.getJid().getResourcepart();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue