diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-01-14 22:48:14 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-01-14 22:48:14 +0100 |
commit | a6a9ed487786451f0eedfaa63fbbc5332d4adcf3 (patch) | |
tree | 67df3593ae6ea64f3516ed9be57b2a828d01a52d /src/main/java/eu/siacs/conversations/utils | |
parent | df742ce1e12d9909a0b1777a839e012a6dcdc78b (diff) |
handle muc nicks with white spaces. fixed #884
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/UIHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index ed1db287..b00447a4 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -212,9 +212,9 @@ public class UIHelper { if (counterpart==null) { return ""; } else if (!counterpart.isBareJid()) { - return counterpart.getResourcepart(); + return counterpart.getResourcepart().trim(); } else { - return counterpart.toString(); + return counterpart.toString().trim(); } } } |