Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep a copy of the replied message instead of fetching and computing rendering of the reply message block #646

Closed
4 tasks
nikkothari22 opened this issue Jan 27, 2024 · 1 comment · Fixed by #663
Labels
🩻 backend enhancement New feature or request Improvement Created by Linear-GitHub Sync Medium priority Created by Linear-GitHub Sync 🎨 UI

Comments

@nikkothari22
Copy link
Member

nikkothari22 commented Jan 27, 2024

If a message is a reply to another, copy the trimmed text content of the original message in the new message, along with its ID.

Benefits of this:

  1. Pagination is much easier since we don't need to fetch the original message separately.
  2. Rendering is much faster since we don't have to use Tiptap to render the original message and neither do we have to trim the content on the frontend.
  3. Original message can be deleted easily without doing any integrity checks.
  • Add a field for replied message content in Raven Message
  • On the frontend, swap the replied message block with a simple text block
  • When a message is replied to, copy over the content from the original message, trim it and store it in the new message
  • Run a patch migration on all existing messages
@nikkothari22 nikkothari22 added Improvement Created by Linear-GitHub Sync Medium priority Created by Linear-GitHub Sync 🎨 UI 🩻 backend labels Jan 27, 2024
@maige-app maige-app bot added the enhancement New feature or request label Jan 27, 2024
@nikkothari22 nikkothari22 linked a pull request Feb 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🩻 backend enhancement New feature or request Improvement Created by Linear-GitHub Sync Medium priority Created by Linear-GitHub Sync 🎨 UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant