Search in sources :

Example 1 with SafeLeaveRequest

use of com.fanap.podchat.chat.thread.request.SafeLeaveRequest in project pod-chat-android-sdk by FanapSoft.

the class ChatPresenter method leaveThread.

@Override
public void leaveThread(long threadId, ChatHandler handler) {
    SafeLeaveRequest request = new SafeLeaveRequest.Builder(threadId, 18477).build();
    // RequestLeaveThread leaveThread = new RequestLeaveThread.Builder(threadId).shouldKeepHistory()
    // .build();
    // 
    // chat.leaveThread(leaveThread, null);
    chat.safeLeaveThread(request);
}
Also used : SafeLeaveRequest(com.fanap.podchat.chat.thread.request.SafeLeaveRequest)

Aggregations

SafeLeaveRequest (com.fanap.podchat.chat.thread.request.SafeLeaveRequest)1