Keep read receipts for the other person only, and let photos, voice, and files stay cached until they are actually replaced.
4 lines
141 B
SQL
4 lines
141 B
SQL
-- Own-message edits. Nullable so existing rows stay unedited.
|
|
ALTER TABLE chat_messages
|
|
ADD COLUMN IF NOT EXISTS edited_at TIMESTAMPTZ;
|