Skip to content

feat: keep incoming deleted messages visible locally#27

Open
rhcp011235 wants to merge 1 commit intofagramdesktop:devfrom
rhcp011235:feature/anti-delete-clean
Open

feat: keep incoming deleted messages visible locally#27
rhcp011235 wants to merge 1 commit intofagramdesktop:devfrom
rhcp011235:feature/anti-delete-clean

Conversation

@rhcp011235
Copy link
Contributor

Summary

  • Messages deleted by other users no longer disappear from the local message list
  • Only outgoing messages (sent by the local user) are removed when a delete event is received
  • Incoming messages from other users survive deletion updates and remain visible

Implementation

Modified processMessagesDeleted() and processNonChannelMessagesDeleted() in data_session.cpp to skip destroy() for any message where item->out() returns false.

Test plan

  • Have another user delete a message in a shared chat — confirm it stays visible on your end
  • Delete one of your own messages — confirm it still disappears normally
  • Test in both regular chats and channels

🤖 Generated with Claude Code

Messages deleted by other users are no longer removed from the local
message list, so they remain visible to the local client.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rhcp011235
Copy link
Contributor Author

confirmed this to work as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant