mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-27 19:22:15 -05:00
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() {
|
||||
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…
Reference in New Issue
Block a user