progval / matrix2051

A Matrix gateway for IRC: connect to Matrix from your favorite IRC client.
GNU Affero General Public License v3.0
77 stars 12 forks source link

Redactions #23

Open Thaodan opened 2 years ago

Thaodan commented 2 years ago

I would suggest that redactions could be handled as in other similar clients such as purple-slack. E.g. Chat:

<user> <data> bar bar

Reduction:

Reducted:  
<user> <data> bar bar
Reason:
bar
progval commented 2 years ago

Do you mean redactions?

The reason it's not implemented yet, is that it requires keeping track of messages received from the room, which can be tricky to get right (eg. they need to be expired in order to avoid leaking memory)

Thaodan commented 2 years ago

Do you mean redactions?

Yes, fixed the title.

Can we query the message again when it is redacted? I see other similar clients implementing it. It would be useful for keeping context of a message.

progval commented 2 years ago

Unfortunately no, homeservers are expected to remove messages from their database upon redaction.

progval commented 2 years ago

I wrote a basic implementation of this in 6fec00a80632dd2a4ca0f2619cde43f7e376f92b. No message storage, it just says an event was deleted; which shows up as a reply to the deleted message if you use IRCCloud (or any other client that supports +draft/reply)