1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00
This commit is contained in:
David Baker
2018-01-02 13:42:16 +00:00
parent fee90bab66
commit 124ab30f98

View File

@@ -807,6 +807,13 @@ OlmDevice.prototype.getOutboundGroupSessionKey = function(sessionId) {
* this session to us (normally empty).
*/
/**
* Unpickle a session from a sessionData object and invoke the given function.
* The session is valid only until func returns.
*
* @param {Object} sessionData Object describing the session.
* @param {function(Olm.InboundGroupSession)} func Invoked with the unpickled session
*/
OlmDevice.prototype._unpickleInboundGroupSession = function(sessionData, func) {
const session = new Olm.InboundGroupSession();
try {