getDraft method

void getDraft()

Implementation

void getDraft() async {
  await engineProvider.engine?.getDraftMessage(
    _con.conversationType ?? RCIMIWConversationType.invalid,
    _con.targetId ?? '',
    _con.channelId,
    callback: IRCIMIWGetDraftMessageCallback(
      onSuccess: (draft) {
        _conversationDraft = draft;
        notifyListeners();
      },
      onError: (code) {},
    ),
  );
}