mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Do not return a Message "default" language if there is none
This commit is contained in:
parent
b4b75a3cca
commit
93c2b2be26
1 changed files with 1 additions and 7 deletions
|
@ -455,15 +455,9 @@ public final class Message extends Stanza implements TypedCloneable<Message> {
|
||||||
if (language == null && this.language != null) {
|
if (language == null && this.language != null) {
|
||||||
return this.language;
|
return this.language;
|
||||||
}
|
}
|
||||||
else if (language == null) {
|
|
||||||
return getDefaultLanguage();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return language;
|
return language;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
Loading…
Reference in a new issue