aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-04-12 21:22:48 +0200
committerChristian Schneppe <christian@pix-art.de>2019-04-12 21:22:48 +0200
commit51afe29aec302b1002b62acedf5afd1d07463b00 (patch)
tree5ebbd84ac0c71f4d62e7fea797c2a49bd260f6f4 /src/main/java
parent69114f04a8400d0c240bf3fdd8515f3f57155cce (diff)
fix invite links
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/XmppActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/XmppActivity.java b/src/main/java/de/pixart/messenger/ui/XmppActivity.java
index 936c62390..e482f3879 100644
--- a/src/main/java/de/pixart/messenger/ui/XmppActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/XmppActivity.java
@@ -1007,8 +1007,8 @@ public abstract class XmppActivity extends ActionBarActivity {
(dialog, id) -> {
String selection = spinner.getSelectedItem().toString();
Account mAccount = xmppConnectionService.findAccountByJid(Jid.of(selection).asBareJid());
- String user = mAccount.getDisplayName();
- String domain = mAccount.getJid().getDomain();
+ String user = Jid.of(mAccount.getJid()).getLocal();
+ String domain = Jid.of(mAccount.getJid()).getDomain();
String inviteURL = AdHocInviteUri(mAccount);
if (inviteURL == null) {
inviteURL = Config.inviteUserURL + user + "/" + domain;