feat: add the ability to reply with any filetype#2715
feat: add the ability to reply with any filetype#2715nushea wants to merge 9 commits intocinnyapp:devfrom
Conversation
… you to reply to it again through text
…ique to the first item sent
Dunno. That might be the case but I also don't remember exactly when I merged it to my branch. I don't think I've pulled since this was last reviewed though. |
oh sorry i just realized that this was still using an older implementation of it, the issue is that cinny sends files and text in parallel so there can be a race condition where the editor gets cleared out before you get the chance to send the files, i have made a one line change to fix this by literally beating out the clear by any means possible, honestly the whole message sending flow could use changing but for this one option it might not be worth it also there is another way to make it consistent but that would require awaiting the completion of creating the file contents which could make sending them a bit slower Could you please update it on your fork (or move the plaintext function in the /src/app/features/room/RoomInput.tsx → handleSendUpload function to have const plaintext = toPlainText(editor.children, isMarkdown).trim(); as the first item ) and then tell me if the issue persists? |
Alright, pulled your branch and it looks to be good now! Tested also after merging to my main branch and that has definitely solved the issue.
Yeah by the sounds of it, that would probably be a good idea. Maybe for a future PR though. Thanks for the speedy fix! |


Description
Whenever I talk with people and they ask me to send them a file or i want to reply with an image to something they say I currently have to reply with an empty message and then the image/file.
This fix would allow anyone to reply with any file or a sticker to an event.
Also while you can send multiple files in one burst or a file and text, only the topmost item gets the reply event so it doesn't show as many reply icon visuals as there are events, with the reply working as before for text+file, with only the text having the reply tag as it is always the topmost item.
Additionally the older flow where you couldn't reply with images/files has confused all of the people that i have on-boarded or that were new to the platform
Example of how this feature could be used

Fixes #2659
(accidentally closed #2706 by renaming the branch to give my local branches proper names
-without realizing it automatically closes them on github/cinny)Type of change
Checklist: