mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 19:10:38 +00:00
Actually store preKeys
This commit is contained in:
parent
08f8d2b026
commit
dbebd38391
2 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue