Repository navigation
Added features: Forwarding Message, Editing Message & Starred Messages - #269
techyminati wants to merge 8 commits into
Conversation
Add a Forward action to messages, letting users send an existing message's text and attachments to another conversation. Change-Id: I8e6c0c45736115d7e12f8dfae8ff85c5d63bfb6f
Adds a star toggle to the message actions. Starred messages are remembered locally by action hash and show a small star under the bubble. Handy for pinning something important without sharing that choice with anyone else. Change-Id: I967cee4bbf1d0e56b19b5a0af91b0a13898a4bb5 Signed-off-by: techyminati <techyminati@outlook.com>
Wires up the existing update_message zome call. The author picks Edit from the message actions, changes the text, and the update is written to the DHT and reflected locally with an "edited" marker. Edits follow the update chain so a message can be changed more than once. NOTE:- Peers pick up the new text when they refetch the message; there's no live update signal yet, so this is deliberately author-side for now. Change-Id: I8d407b03f684e0e9656e6867d1974a4f4c18e75d Signed-off-by: techyminati <techyminati@outlook.com>
Change-Id: I04cf59b897511ca58d1a336d201fdcab725a6da2 Signed-off-by: techyminati <techyminati@outlook.com>
update_message only wrote the edit to the local chain, so peers never saw it. It now broadcasts the edit the same way create_message does, keyed by the original message hash, and the receiving client swaps the new content into the message it already has instead of treating it as a new one. The edit carries the participant list so the signal reaches everyone in the conversation. Change-Id: I4e283a23820ebd12635f2cbe558c287a4722f599 Signed-off-by: techyminati <techyminati@outlook.com>
Add "Starred Messages" entry in conversation list which opens starred messages just like whatsapp. Change-Id: I82b2def7c84ceb6e8301d37150c0ea5dfbe9fab5 Signed-off-by: techyminati <techyminati@outlook.com>
Forwarding now marks the new message with a forwarded flag, and the bubble shows a small "Forwarded" tag. Adds an optional forwarded field to the message entry (defaulted so old messages still read back). Change-Id: I0423176181bbe9dcbb7581b9bb1e7418d2fa4295 Signed-off-by: techyminati <techyminati@outlook.com>
Change-Id: I571525cb631420755aac7025c32cc7c40aba18b8 Signed-off-by: techyminati <techyminati@outlook.com>
|
@techyminati Blocking (security) Edit spoofing: No author check on updates: Group description: any member of a public group can edit it, and saving rewrites the group's settings (title, picture). Please restrict it the same way as title and picture. Also needed: Two new type errors: Scope and timing: Stars (UI only) can go in once the type errors are fixed. Forwarding, editing and the description would go in together with the other 2.0 integrity changes, before we build the 2.0 happ. Synchronization and cache (also blocking) Edits only reach other devices through one Moderation (#231/#238/#240) changes the same Please rebase after #279 (the hidden-messages and history-loading fixes on develop), since both touch ConversationMessageStore.ts. |
Summary
review @Amirhesp