BaseMessageParams.withMessage constructor

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

Implementation

BaseMessageParams.withMessage(BaseMessage message, {bool? deepCopy}) {
  data = message.data;
  customType = message.customType;
  metaArrays = message.metaArrays;
  mentionType = message.mentionType;
  mentionedUsers = message.mentionedUsers;
  isPinnedMessage = message.isPinnedMessage;
  mentionedUserIds = message.mentionedUsers.map((e) => e.userId).toList();
  if (deepCopy != null && deepCopy) {
    parentMessageId = message.parentMessageId;
  }
}