Skip to content
Snippets Groups Projects
Commit d6ddefa8 authored by bontric's avatar bontric
Browse files

move mailboxstorage to constructor (WIP anyways)

parent db9f4193
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,9 @@ public class MailboxSessionFactoryImpl implements MailboxSessionFactory { ...@@ -38,6 +38,9 @@ public class MailboxSessionFactoryImpl implements MailboxSessionFactory {
this.streamWriterFactory = streamWriterFactory; this.streamWriterFactory = streamWriterFactory;
this.streamReaderFactory = streamReaderFactory; this.streamReaderFactory = streamReaderFactory;
this.db = db; this.db = db;
// FIXME: using temporary storage for now
mailboxStorage = new MailboxStorageImpl();
} }
@Override @Override
...@@ -61,10 +64,6 @@ public class MailboxSessionFactoryImpl implements MailboxSessionFactory { ...@@ -61,10 +64,6 @@ public class MailboxSessionFactoryImpl implements MailboxSessionFactory {
streamReaderFactory, mailboxProtocol, streamReaderFactory, mailboxProtocol,
transportMaxLatency, transportMaxIdleTime, db); transportMaxLatency, transportMaxIdleTime, db);
case MAILBOX_OWNER: case MAILBOX_OWNER:
if (mailboxStorage == null) {
// FIXME: using temporary storage for now
mailboxStorage = new MailboxStorageImpl();
}
return new MailboxOwnerSession(contactId, ioExecutor, return new MailboxOwnerSession(contactId, ioExecutor,
keyManager, syncSessionFactory, streamWriterFactory, keyManager, syncSessionFactory, streamWriterFactory,
streamReaderFactory, mailboxProtocol, streamReaderFactory, mailboxProtocol,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment