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) {
StoredSession ss = getSession(txn, g, sessionId);
if (ss == null) throw new DbException();
BdfDictionary sessionMeta = clientHelper
.getMessageMetadataAsDictionary(txn, ss.storageId);
Session<?> session = sessionParser
.parseSession(g, sessionMeta);
Session<?> session =
sessionParser.parseSession(g, ss.bdfSession);
deletableSession = new DeletableSession(session.getState());
sessions.put(sessionId, deletableSession);
}