summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorCyber <mateusz.hf18@gmail.com>2025-12-12 22:21:09 +0100
committerGitHub <noreply@github.com>2025-12-12 22:21:09 +0100
commit68c46ca956b91c620b78ffc9be63ea790ef5cf3c (patch)
treeab1a869a107ab31397f2f5b7d937f631137ae44b /src/api
parentfix: show compare url on multiple commits (diff)
parentfix: prevent race condition in rabbitmq (diff)
downloadserver-ts-68c46ca956b91c620b78ffc9be63ea790ef5cf3c.tar.xz
Merge branch 'spacebarchat:master' into fix/gh-embeds-new-commits-title-link
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/channels/#channel_id/messages/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts

index 8790241d8..43c4984e0 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts
@@ -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(); }