qiscus / qiscus-sdk-android

Qiscus provide everything you need to power up your app with chats. And it's now made simple.
https://www.qiscus.com
Apache License 2.0
201 stars 84 forks source link

QiscusApi.getInstance().getChatRoom(roomId) returns nothing #77

Closed anuress closed 5 years ago

anuress commented 5 years ago

I got no return value from running QiscusApi.getInstance().getChatRoom(roomId). Below is the code that I used.

QiscusApi.getInstance()
                .getChatRoom(id)
                .subscribeOn(Schedulers.io())
                .doOnNext(chatRoom -> QiscusCore.getDataStore().addOrUpdate(chatRoom))
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(onSuccess::call, onError::call);
adicatur commented 5 years ago

Hi @anuress thanks for the report, can you try again?

anuress commented 5 years ago

Hmm, it's not sdk problem, I guess? Anyway, thank you, it's working now.

adicatur commented 5 years ago

Cool!, the issue was on Server, but we've fixed it, anyway thanks for the report