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();
}
}
Aggregations