When bulk import finds an already existing post, it should delete existing files before importing new ones

Description

Currently, when importing a Mattermost export file, if the importer finds a post that matches the post timestamp that its trying to import for the same channel, it will consider that both posts are the same, and it will append the new post attachments to the already imported ones.

This is not an idempotent behavior, so we should modify the logic to delete previously existing files before importing new ones.

QA Test Steps

None

Status

Mana

None

Assignee

Mattermost Community

QA Assignee

None

Reporter

Miguel de la Cruz

Epic Link

None

Fix versions

Mattermost Team

Platform

Sprint

QA Testing Areas

None

GitHub Issue

None

Components

None
Configure