BaseMessageCreateParams.withMessage constructor

BaseMessageCreateParams.withMessage(
  1. BaseMessage message,
  2. {bool? deepCopy}
)

withMessage

Implementation

BaseMessageCreateParams.withMessage(BaseMessage message, {bool? deepCopy}) {
  data = message.data;
  customType = message.customType;
  mentionType = message.mentionType ?? MentionType.users;
  mentionedUserIds = message.mentionedUsers.map((e) => e.userId).toList();
  metaArrays = message.allMetaArrays;
  if (deepCopy != null && deepCopy) {
    parentMessageId = message.parentMessageId;
  }
  replyToChannel = message.isReplyToChannel;
}