-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add message type for correction #685
Conversation
Does somebody know, why |
Reviewed 6 of 6 files at r2. Comments from Reviewable |
This is for correcting the last message, right? Why not utilize the |
Would it make sense? when allowing changes to any message, one could sneakily change the start of conversations. |
hashtag: persistent longterm message IDs |
@Diadlo how is "last message" defined? messages have no guarenteed order of arrival (and sometimes arrive out of order) so the sender thinks he deletes or corrects one message, while in fact another message on the receiver side is deleted/corrected |
@zoff99 Same with writing normal messages. When you write message you are not sure, that friend already receive previous. Correction works the same way ADDED: Last message := last received message |
@nurupo I'm not too familiar with toxcore. So current implementation is easies way to create at least some way to edit messages. I will be happy if someone can implement message editing within ~session or something like this |
#548 |
I'm not sure, that long term message ID is needed now |
the need has been there for a long time: |
This is a mistake... it makes the code base harder to maintain (why are you using an enum inside of a define?). Requires clients to implement code/features in a similar manner, while also not providing any specifics as to how. Adds an additional level of required complexity for clients who need to prevent malicious use. Allows message history from two different clients to go out of sync, in an unreasonable way. my general reaction to this pull http://i.imgur.com/iouyret.gif |
I'm not a big fan of this change either. Especially after zoff99 pointed out that the messages might not arrive in the right order, so you might correct the wrong message. |
So, maybe revert this change then? |
I did it by analogy with the previous value:
Sorry, maybe I skip something, but where described how implement action message?
Hm... AFAIK the history of two clients has never been synchronized |
Let's revert it for now. @Diadlo can you send a PR? We can keep the idea in mind and revisit it in the upcoming redesign. |
Messages WILL arrive in the order given to toxcore, or not at all. Zoff99 is incorrect when he said that.
It says, in tox.h (or used to) "similar to an action message in IRC" or Also, you don't really need to do anything specific with an action What if I receive a message correction as the first message? How should
It's ALWAYS been synchronized. Now, if client A replaces the message |
On February 2, 2018 12:20:25 AM PST, Polshakov Dmitry ***@***.***> wrote:
> why are you using an enum inside of a define?
I did it by analogy with the previous value: `PACKET_ID_ACTION`
> Requires clients to implement code/features in a similar manner,
while also not providing any specifics as to how
Sorry, maybe I skip something, but where described how implement action
message?
It says, in tox.h (or used to) "similar to an action message in IRC" or something to that effect.
Also, you don't really need to do anything specific with an action message, treating exactly the same as a standard message is perfectly acceptable. Would you make the same assertion for a message correction?
What if I receive a message correction as the first message? How should my client handle that?
> Allows message history from two different clients to go out of sync,
in an unreasonable way.
Hm... AFAIK the history of two clients has never been synchronized
It's ALWAYS been synchronized. Now, if client A replaces the message with the correction, and client B appends the correction. The two histories will diverge. Additionally, what's to stop me from ONLY editing the last message over and over. One client will have dozens of messages, the other will have 1.
|
Messages WILL arrive in the order given to toxcore, or not at all. Zoff99 is incorrect when he said that.
…On February 1, 2018 7:19:03 PM PST, nurupo ***@***.***> wrote:
I'm not a big fan of this change either. Especially after zoff99
pointed out that the messages might not arrive in the right order, so
you might correct the wrong message.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#685 (comment)
|
This change is