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

Fix bug/clear chat #42

Closed andhikayuana closed 6 years ago

andhikayuana commented 6 years ago

clear chats (clear room comments)

ArrayList<Integer> roomIds = new ArrayList<>();
roomIds.add(qiscusChatRoom.getId());
QiscusApi.getInstance()
    .clearChatRoomMessages(roomIds)
    .subscribeOn(Schedulers.io())
    .observeOn(AndroidSchedulers.mainThread())
    .subscribe(aVoid -> {
        //todo your implementation
    }, e -> {
        //todo your implementation
    });
codecov[bot] commented 6 years ago

Codecov Report

Merging #42 into develop will not change coverage. The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           develop     #42   +/-   ##
=======================================
  Coverage        0%      0%           
=======================================
  Files          127     127           
  Lines        10125   10136   +11     
  Branches      1046    1046           
=======================================
- Misses       10125   10136   +11
Impacted Files Coverage Δ
...ain/java/com/qiscus/sdk/data/remote/QiscusApi.java 0% <0%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3370604...aace443. Read the comment docs.