mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 20:29:52 +01:00
Use stored session metadata instead of fetching it again
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user