mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Merge pull request #520 from guusdk/SPARK-2154_offline-messages
SPARK-2154: Do not parse nicknames using Jid implementation
This commit is contained in:
@ -403,9 +403,9 @@ public class Workspace extends JPanel implements StanzaListener {
|
||||
return;
|
||||
}
|
||||
ContactItem contact = contactList.getContactItemByJID(bareJID);
|
||||
Localpart nickname = bareJID.getLocalpartOrNull();
|
||||
String nickname = bareJID.getLocalpartOrNull() == null ? null : bareJID.getLocalpartOrNull().toString();
|
||||
if (contact != null) {
|
||||
nickname = Localpart.fromOrThrowUnchecked(contact.getDisplayName());
|
||||
nickname = contact.getDisplayName();
|
||||
}
|
||||
|
||||
// Create the room if it does not exist.
|
||||
|
||||
Reference in New Issue
Block a user