Search in sources :

Example 1 with RequestChatUpdateDraft

use of net.iGap.request.RequestChatUpdateDraft in project iGap-Android by KianIranian-STDG.

the class FragmentChat method clearDraftRequest.

private void clearDraftRequest() {
    if (hasDraft) {
        hasDraft = false;
        if (chatType == CHAT) {
            new RequestChatUpdateDraft().chatUpdateDraft(mRoomId, "", 0);
        } else if (chatType == GROUP) {
            new RequestGroupUpdateDraft().groupUpdateDraft(mRoomId, "", 0);
        } else if (chatType == CHANNEL) {
            new RequestChannelUpdateDraft().channelUpdateDraft(mRoomId, "", 0);
        }
        clearLocalDraft();
    }
}
Also used : RequestChannelUpdateDraft(net.iGap.request.RequestChannelUpdateDraft) RequestChatUpdateDraft(net.iGap.request.RequestChatUpdateDraft) RequestGroupUpdateDraft(net.iGap.request.RequestGroupUpdateDraft)

Aggregations

RequestChannelUpdateDraft (net.iGap.request.RequestChannelUpdateDraft)1 RequestChatUpdateDraft (net.iGap.request.RequestChatUpdateDraft)1 RequestGroupUpdateDraft (net.iGap.request.RequestGroupUpdateDraft)1