aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/generator
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-12-25 22:08:13 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-12-25 22:08:13 +0100
commit0c22a8d1c6a984ccd0080d74a07d500879ee8242 (patch)
tree7b9da3710baa83ba11baf2fe110e61e767912f26 /src/main/java/eu/siacs/conversations/generator
parente4d9dca2fe6a75960d24f8af4dadba9a1a42845c (diff)
added callback to change account password to notify UI on success / failure
Diffstat (limited to 'src/main/java/eu/siacs/conversations/generator')
-rw-r--r--src/main/java/eu/siacs/conversations/generator/IqGenerator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java
index 4bfc0963d..f94dc5d7d 100644
--- a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java
+++ b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java
@@ -144,7 +144,7 @@ public class IqGenerator extends AbstractGenerator {
packet.setTo(account.getServer());
final Element query = packet.addChild("query", Xmlns.REGISTER);
final Jid jid = account.getJid();
- query.addChild("username").setContent(jid.isDomainJid() ? jid.toString() : jid.getLocalpart());
+ query.addChild("username").setContent(jid.getLocalpart());
query.addChild("password").setContent(newPassword);
return packet;
}