Naively move device/session storage to wrapper
This commit is contained in:
parent
870e5dc9dc
commit
04b2a13a75
2 changed files with 13 additions and 4 deletions
|
@ -24,6 +24,15 @@
|
|||
remove: function(key) {
|
||||
return textsecure.storage.removeEncrypted(key);
|
||||
},
|
||||
|
||||
sessions: {
|
||||
get: function(identifier) {
|
||||
return textsecure.storage.devices.getDeviceObject(identifier);
|
||||
},
|
||||
put: function(object) {
|
||||
return textsecure.storage.devices.saveDeviceObject(object);
|
||||
}
|
||||
}
|
||||
},
|
||||
updateKeys: function(keys) {
|
||||
return textsecure.api.registerKeys(keys).catch(function(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue