updateMessage method
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;
}