diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-03 16:04:27 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-03 16:04:27 +0100 |
commit | 7d79852c8403a8882061480cfb524724b84857ec (patch) | |
tree | f5c33e5753ce99199ebc26639299549e4ff5f510 /src/de/gultsch/chat/services | |
parent | 3d9294684c739cc54de8dfa08ad22097ca8a1811 (diff) |
fixed a bug in xml parsing
Diffstat (limited to '')
-rw-r--r-- | src/de/gultsch/chat/services/XmppConnectionService.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/de/gultsch/chat/services/XmppConnectionService.java b/src/de/gultsch/chat/services/XmppConnectionService.java index d7ee76ee..fa2e6d7e 100644 --- a/src/de/gultsch/chat/services/XmppConnectionService.java +++ b/src/de/gultsch/chat/services/XmppConnectionService.java @@ -47,7 +47,6 @@ public class XmppConnectionService extends Service { @Override public void onMessagePacketReceived(Account account, MessagePacket packet) { if (packet.getType()==MessagePacket.TYPE_CHAT) { - Log.d(LOGTAG,account.getJid()+": message of type chat"); String fullJid = packet.getFrom(); String jid = fullJid.split("/")[0]; String name = jid.split("@")[0]; @@ -132,7 +131,6 @@ public class XmppConnectionService extends Service { @Override public void onIqPacketReceived(Account account, IqPacket packet) { Element roster = packet.findChild("query"); - Log.d(LOGTAG,roster.toString()); List<Contact> contacts = new ArrayList<Contact>(); for(Element item : roster.getChildren()) { String name = item.getAttribute("name"); @@ -182,10 +180,10 @@ public class XmppConnectionService extends Service { } public Conversation findOrCreateConversation(Account account, Contact contact) { - Log.d(LOGTAG,"was asked to find conversation for "+contact.getJid()); + //Log.d(LOGTAG,"was asked to find conversation for "+contact.getJid()); for(Conversation conv : this.getConversations()) { if ((conv.getAccount().equals(account))&&(conv.getContactJid().equals(contact.getJid()))) { - Log.d(LOGTAG,"found one in memory"); + //Log.d(LOGTAG,"found one in memory"); return conv; } } |