Merge branch 'spacebarchat:master' into fix/gh-embeds-new-commits-title-link

This commit is contained in:
Cyber
2025-12-12 22:21:09 +01:00
committed by GitHub
5 changed files with 71 additions and 108 deletions

View File

@@ -548,7 +548,7 @@ router.delete(
// TODO: handle other read state types
if (body.read_state_type != ReadStateType.CHANNEL) return res.status(204).send();
const readState = await ReadState.findOne({where: {channel_id}});
const readState = await ReadState.findOne({ where: { channel_id, user_id: req.user_id } });
if (readState) {
await readState.remove();
}