aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/services/XmppConnectionService.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-22 18:18:51 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-22 18:18:51 +0100
commita5a39fa9af27c56a5ebe58db0780ba46b5a8c910 (patch)
tree2df066d2e7056c7e399b9adb41bb5837eaa03b22 /src/de/gultsch/chat/services/XmppConnectionService.java
parentb8e85a284635584ce6b18c85ab129e6b9b6d2047 (diff)
bug fixes for faulty roster fetch and otr bug between two sc instances
Diffstat (limited to '')
-rw-r--r--src/de/gultsch/chat/services/XmppConnectionService.java6
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 a3e5d7cd..bb460959 100644
--- a/src/de/gultsch/chat/services/XmppConnectionService.java
+++ b/src/de/gultsch/chat/services/XmppConnectionService.java
@@ -464,17 +464,15 @@ public class XmppConnectionService extends Service {
mWhere.append("jid NOT IN(");
List<Element> items = roster.getChildren();
for(int i = 0; i < items.size(); ++i) {
- mWhere.append("\"");
mWhere.append(DatabaseUtils.sqlEscapeString(items.get(i).getAttribute("jid")));
if (i != items.size() - 1) {
- mWhere.append("\",");
- } else {
- mWhere.append("\"");
+ mWhere.append(",");
}
}
mWhere.append(") and accountUuid = \"");
mWhere.append(account.getUuid());
mWhere.append("\"");
+ Log.d(LOGTAG,mWhere.toString());
List<Contact> contactsToDelete = databaseBackend.getContats(mWhere.toString());
for(Contact contact : contactsToDelete) {
databaseBackend.deleteContact(contact);