merge method

Message merge(
  1. Message other
)

Returns a new Message that is a combination of this message and the given other message.

Implementation

Message merge(Message other) {
  return copyWith(
    id: other.id,
    text: other.text,
    type: other.type,
    attachments: other.attachments,
    mentionedUsers: other.mentionedUsers,
    silent: other.silent,
    shadowed: other.shadowed,
    reactionCounts: other.reactionCounts,
    reactionScores: other.reactionScores,
    latestReactions: other.latestReactions,
    ownReactions: other.ownReactions,
    parentId: other.parentId,
    quotedMessage: other.quotedMessage,
    quotedMessageId: other.quotedMessageId,
    replyCount: other.replyCount,
    threadParticipants: other.threadParticipants,
    showInChannel: other.showInChannel,
    command: other.command,
    createdAt: other.remoteCreatedAt,
    localCreatedAt: other.localCreatedAt,
    updatedAt: other.remoteUpdatedAt,
    localUpdatedAt: other.localUpdatedAt,
    deletedAt: other.remoteDeletedAt,
    localDeletedAt: other.localDeletedAt,
    user: other.user,
    pinned: other.pinned,
    pinnedAt: other.pinnedAt,
    pinExpires: other.pinExpires,
    pinnedBy: other.pinnedBy,
    extraData: other.extraData,
    state: other.state,
    i18n: other.i18n,
  );
}