AnthyG / ThunderWave

A chat for ZeroNet
http://127.0.0.1:43110/1CWkZv7fQAKxTVjZVrLZ8VHcrN6YGGcdky/
15 stars 3 forks source link

Citation of messages (answer/ reply) #56

Closed AnthyG closed 6 years ago

AnthyG commented 7 years ago

For this, there could be some really weird markdown-like code, which would include a DB-reference to a specific messages property (I dunno to which , as the indices are not the same over multiple users, as far as I noticed 🤔😟, so for this to work, probably a new property has to be created..).

In general, an answer-message could then contain an part (or the complete) message, and a way to jump there (the second might be very hard to accomplish!!).

AnthyG commented 6 years ago

I don't know, if I can actually implement this in a good way, as the indices of the messages differ over all users database's, making it really hard to get a unique key.. 🤔

I could however add a random string to every message, which would be it's unique key across all users (the problem with that would be, that users could just modify it, and thus even override all other users messages).

AnthyG commented 6 years ago

Pretty much added with commit 76db7f3940b1d33dc1b415362b7a31794df8249b

AnthyG commented 6 years ago

The feature as of now does look kind of ugly, but I will change that sometime soon!

Also, as I haven't yet started #53, you have to click on the timestamp of a message, to insert the code for citation.

AnthyG commented 6 years ago

Some more changes to styling with commit 561e5e461f438fff4b9939b4b426152f14359d76

AnthyG commented 6 years ago

Just to mention it, this feature isn't available in private chat (at least not yet).