forked from mirror/monocles_chat_clean
trim nick from bookmark before checking if it's empty
This commit is contained in:
parent
6840ad4dc4
commit
a0391874b1
1 changed files with 2 additions and 2 deletions
|
@ -504,8 +504,8 @@ public class MucOptions {
|
|||
public String getProposedNick() {
|
||||
if (conversation.getBookmark() != null
|
||||
&& conversation.getBookmark().getNick() != null
|
||||
&& !conversation.getBookmark().getNick().isEmpty()) {
|
||||
return conversation.getBookmark().getNick();
|
||||
&& !conversation.getBookmark().getNick().trim().isEmpty()) {
|
||||
return conversation.getBookmark().getNick().trim();
|
||||
} else if (!conversation.getJid().isBareJid()) {
|
||||
return conversation.getJid().getResourcepart();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue