Async putSessionsForDevice

This commit is contained in:
lilia 2015-04-09 14:54:59 -07:00
parent 666f6baaca
commit 26f1aa4db5
3 changed files with 37 additions and 35 deletions

View file

@ -177,9 +177,7 @@
putSession: function(identifier, record) {
if (identifier === null || identifier === undefined)
throw new Error("Tried to put session for undefined/null key");
return new Promise(function(resolve) {
resolve(textsecure.storage.sessions.putSessionsForDevice(identifier, record));
});
return textsecure.storage.sessions.putSessionsForDevice(identifier, record);
}
};