MXSession:has no rooms
blackchy opened this issue · comments
I created some rooms with roit app.Then I login sucess to get credentials and create session,but there is no room data in this session.And I can find room data in the session with roit app's logs.
My code that create session:
HomeServerConnectionConfig hsConfig = new HomeServerConnectionConfig(Uri.parse("https://matrix.org"), Uri.parse("https://vector.im"), credentials, new ArrayList<Fingerprint>(), false); IMXStore store = new MXFileStore(hsConfig, context); MXSession session = new MXSession(hsConfig, new MXDataHandler(store, credentials),context);
Why is it?
Which Method did you call to receive the Roomdata?
The general Room-Overview for a Session should be stored in [$session].getDataHandler().getStore().getSummaries()
I solved this problem half year ago.
I read vector-im/riot-android
's code and found session.getDataHandler().getStore().open();
has method request data.