src/store/session/webstorage.js
function() {
        const prefix = E2E_PREFIX + 'inboundgroupsessions/';
        const result = [];
        for (let i = 0; i < this.store.length; i++) {
            const key = this.store.key(i);
            if (!key.startsWith(prefix)) {
                continue;
            }
            // we can't use split, as the components we are trying to split out
            // might themselves contain '/' characters. We rely on the
            // senderKey being a (32-byte) curve25519 key, base64-encoded
            // (hence 43 characters long).

            result.push({
                senderKey: key.substr(prefix.length, 43),
                sessionId: key.substr(prefix.length + 44),
            });
        }
        return result;
    }
function() {
        const prefix = E2E_PREFIX + 'inboundgroupsessions/';
        const result = [];
        for (let i = 0; i < this.store.length; i++) {
            const key = this.store.key(i);
            if (!key.startsWith(prefix)) {
                continue;
            }
            // we can't use split, as the components we are trying to split out
            // might themselves contain '/' characters. We rely on the
            // senderKey being a (32-byte) curve25519 key, base64-encoded
            // (hence 43 characters long).

            result.push({
                senderKey: key.substr(prefix.length, 43),
                sessionId: key.substr(prefix.length + 44),
            });
        }
        return result;
    }
function ( ) { const prefix = E2E_PREFIX + 'inboundgroupsessions/' ; const result = [ ] ; for ( let i = 0 ; i < this . store . length ; i ++ ) { const key = this . store . key ( i ) ; if ( ! key . startsWith ( prefix ) ) { continue ; } // we can't use split, as the components we are trying to split out // might themselves contain '/' characters. We rely on the // senderKey being a (32-byte) curve25519 key, base64-encoded // (hence 43 characters long). result . push ( { senderKey : key . substr ( prefix . length , 43 ) , sessionId : key . substr ( prefix . length + 44 ) , } ) ; } return result ; }
Retrieve a list of all known inbound group sessions

@return {{senderKey: string, sessionId: string}}
Retrieve a list of all known inbound group sessions