Fix getSubDeviceSessions SQL query

Andreas Straub created

Change summary

src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java 🔗

@@ -594,7 +594,7 @@ public class DatabaseBackend extends SQLiteOpenHelper {
 		Cursor cursor = db.query(AxolotlService.SQLiteAxolotlStore.SESSION_TABLENAME,
 				columns,
 				AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ? AND "
-						+ AxolotlService.SQLiteAxolotlStore.NAME + " = ? AND ",
+						+ AxolotlService.SQLiteAxolotlStore.NAME + " = ?",
 				selectionArgs,
 				null, null, null);