HomeServerConnectionConfig hs = createHomeServerConfig(credentials); MXFileStore store = new MXFileStore(hs, false, context); MXDataHandler dataHandler = new MXDataHandler(store, credentials); dataHandler.setLazyLoadingEnabled(sessionTestParams.getWithLazyLoading()); store.setDataHandler(dataHandler);
dh = new MXDataHandler(store, hsConfig.getCredentials());
MXSession bobSession2 = new MXSession.Builder(hs, new MXDataHandler(store, bobCredentials), context) .withLegacyCryptoStore(mCryptoTestHelper.getUSE_LEGACY_CRYPTO_STORE()) .build();
MXDataHandler mxDataHandler = new MXDataHandler(store, credentials); mxDataHandler.setLazyLoadingEnabled(sessionTestParams.getWithLazyLoading());
MXDataHandler dataHandler = new MXDataHandler(store, credentials); dataHandler.setLazyLoadingEnabled(sessionTestParams.getWithLazyLoading());
IMXStore store = new MXMemoryStore(credentials, context); MXDataHandler mxDataHandler = new MXDataHandler(store, credentials); mxDataHandler.setLazyLoadingEnabled(withLazyLoading);
final MXSession aliceSession2 = new MXSession.Builder(hs, new MXDataHandler(store, aliceCredentials), context) .withLegacyCryptoStore(mCryptoTestHelper.getUSE_LEGACY_CRYPTO_STORE()) .build();
MXSession aliceSession2 = new MXSession.Builder(hs, new MXDataHandler(store, aliceCredentials2), context) .withLegacyCryptoStore(mCryptoTestHelper.getUSE_LEGACY_CRYPTO_STORE()) .build();
MXSession aliceSession2 = new MXSession.Builder(hs, new MXDataHandler(store, aliceCredentials2), context) .withLegacyCryptoStore(mCryptoTestHelper.getUSE_LEGACY_CRYPTO_STORE()) .build();