Fix reply from permalink (#7598)

This commit is contained in:
Elias Nahum 2023-10-17 09:12:24 +04:00 committed by GitHub
parent a3eeb69277
commit 55149a593c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,14 +94,7 @@ export const switchToThread = async (serverUrl: string, rootId: string, isFromNo
}
}
if (currentTeamId === teamId) {
const models = await prepareCommonSystemValues(operator, {
currentChannelId: channel.id,
});
if (models.length) {
await operator.batchRecords(models, 'switchToThread');
}
} else {
if (currentTeamId !== teamId) {
const modelPromises: Array<Promise<Model[]>> = [];
modelPromises.push(addTeamToTeamHistory(operator, teamId, true));
const commonValues: PrepareCommonSystemValuesArgs = {