Actually store preKeys

This commit is contained in:
AsamK 2015-07-07 11:04:59 +02:00
parent 08f8d2b026
commit dbebd38391
2 changed files with 10 additions and 1 deletions

View file

@ -34,7 +34,7 @@ public class JsonSignedPreKeyStore implements SignedPreKeyStore {
public JSONArray getJson() {
JSONArray result = new JSONArray();
for (Integer id : store.keySet()) {
result.put(new JSONObject().put("id", id.toString()).put("record", store.get(id)));
result.put(new JSONObject().put("id", id.toString()).put("record", Base64.encodeBytes(store.get(id))));
}
return result;
}