Use stored session metadata instead of fetching it again

This commit is contained in:
Torsten Grote
2021-03-03 11:32:38 -03:00
parent 64e3940f77
commit dde94baebd

View File

@@ -797,10 +797,8 @@ class GroupInvitationManagerImpl extends ConversationClientImpl
if (deletableSession == null) { if (deletableSession == null) {
StoredSession ss = getSession(txn, g, sessionId); StoredSession ss = getSession(txn, g, sessionId);
if (ss == null) throw new DbException(); if (ss == null) throw new DbException();
BdfDictionary sessionMeta = clientHelper Session<?> session =
.getMessageMetadataAsDictionary(txn, ss.storageId); sessionParser.parseSession(g, ss.bdfSession);
Session<?> session = sessionParser
.parseSession(g, sessionMeta);
deletableSession = new DeletableSession(session.getState()); deletableSession = new DeletableSession(session.getState());
sessions.put(sessionId, deletableSession); sessions.put(sessionId, deletableSession);
} }