mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7978] [Issue]: Failed bulk message visibility updates can leave message and swipe metadata inconsistent #4377
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4377
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @minikkeuen on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7978
Originally assigned to: @SpicyMarinara on GitHub.
Summary
A failure during a bulk message visibility update can leave message and swipe metadata partially modified because the rollback does not fully restore the message being processed when the error occurs.
Expected behavior
Actual behavior
Steps to reproduce
This issue was identified through source-code inspection and reproduced using an automated regression test with an injected storage failure.
Environment
Logs, screenshots, or video
No browser screenshots or runtime error logs are available.
The issue was identified through source-code inspection and reproduced using a failure-injection regression test.
Additional context
The affected implementation is in:
packages/server/src/services/storage/chats.storage.tsThe rollback logic records successfully processed messages but does not fully account for partial changes to the message currently being updated.
The proposed fix restores the original message visibility, swipe metadata, and related properties when a bulk operation fails, without changing normal successful operations.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: