Remove fallback replies & implement intentional mentions (#2138)
authornexy7574 <git@nexy7574.co.uk>
Sun, 23 Feb 2025 11:08:08 +0000 (11:08 +0000)
committerGitHub <noreply@github.com>
Sun, 23 Feb 2025 11:08:08 +0000 (22:08 +1100)
commit8d95758ed75716e6f392bd20c9f22366b16c0407
tree88c7a6215f6590badc9e127e6e3431fa32231b74
parentdd4c1a94e6aa704f316891ce58760dee616f8ffb
Remove fallback replies & implement intentional mentions (#2138)

* Remove reply fallbacks & add m.mentions

(WIP) the typing on line 301 and 303 needs fixing but apart from that this is mint

* Less jank typing

* Mention the reply author in m.mentions

* Improve typing

* Fix typing in m.mentions finder

* Correctly iterate through editor children, properly handle @room, ...

..., don't mention the reply author when the reply author is ourself, don't add own user IDs when mentioning intentionally

* Formatting

* Add intentional mentions to edited messages

* refactor reusable code and fix todo

* parse mentions from all nodes

---------

Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
src/app/components/editor/output.ts
src/app/features/room/RoomInput.tsx
src/app/features/room/message/Message.tsx
src/app/features/room/message/MessageEditor.tsx
src/app/utils/room.ts