Async getSessionsForNumber
This commit is contained in:
parent
9e7d8c0a08
commit
666f6baaca
4 changed files with 33 additions and 31 deletions
|
@ -172,9 +172,7 @@
|
|||
getSession: function(identifier) {
|
||||
if (identifier === null || identifier === undefined)
|
||||
throw new Error("Tried to get session for undefined/null key");
|
||||
return new Promise(function(resolve) {
|
||||
resolve(textsecure.storage.sessions.getSessionsForNumber(identifier));
|
||||
});
|
||||
return textsecure.storage.sessions.getSessionsForNumber(identifier);
|
||||
},
|
||||
putSession: function(identifier, record) {
|
||||
if (identifier === null || identifier === undefined)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue