updateMessage method

Future<void> updateMessage({
  1. String? convID,
  2. ConvType? convType,
  3. required String msgID,
})

Update single message at UI model Please provide convID, if you use TIMUIKitChatController without specifying to a TIMUIKitChat.

Implementation

Future<void> updateMessage(
    {
    /// The ID of the target conversation
    String? convID,

    /// The type of the target conversation
    ConvType? convType,

    /// message ID
    required String msgID}) async {
  if (convID != null && convType != null) {
    return globalChatModel.updateMessageFromController(
        msgID: msgID, conversationID: convID, conversationType: convType);
  } else if (model != null) {
    return model!.updateMessageFromController(msgID: msgID);
  }
  return;
}