setLocalCustomData method

Future<bool> setLocalCustomData(
  1. String msgID,
  2. String localCustomData, [
  3. String? convID
])

Set local custom data; returns the bool shows if succeed. Please provide convID, if you use TIMUIKitChatController without specifying to a TIMUIKitChat.

Implementation

Future<bool> setLocalCustomData(String msgID, String localCustomData,
    [String? convID]) async {
  final String? conversationID = convID ?? model?.conversationID;
  if (conversationID == null) {
    return false;
  }
  return globalChatModel.setLocalCustomData(
      msgID, localCustomData, conversationID);
}