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,13 +455,7 @@ 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 language;
|
||||||
return getDefaultLanguage();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return language;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue