mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-18 08:37:59 +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) {
|
||||
return this.language;
|
||||
}
|
||||
else if (language == null) {
|
||||
return getDefaultLanguage();
|
||||
}
|
||||
else {
|
||||
return language;
|
||||
}
|
||||
|
||||
return language;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue