BaseMessageCreateParams.withMessage constructor
- BaseMessage message,
- {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;
}