mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
Revert commits related to client_message_id.
I pushed a bunch of commits that attempted to introduce the concept of `client_message_id` into our server, as part of cleaning up our codepaths related to messages you sent (both for the locally echoed case and for the host case). When we deployed this, we had some strange failures involving double-echoed messages and issues advancing the pointer that appeared related to #5779. We didn't get to the bottom of exactly why the PR caused havoc, but I decided there was a cleaner approach, anyway.
This commit is contained in:
@@ -68,14 +68,9 @@ function get_events_success(events) {
|
||||
case 'message':
|
||||
var msg = event.message;
|
||||
msg.flags = event.flags;
|
||||
|
||||
// The server echos client_message_id to us, and then we
|
||||
// map it back to our local_id that was used for rendering.
|
||||
msg.local_id = sent_messages.get_local_id({
|
||||
client_message_id: event.client_message_id,
|
||||
});
|
||||
msg.client_message_id = event.client_message_id;
|
||||
|
||||
if (event.local_message_id !== undefined) {
|
||||
msg.local_id = event.local_message_id;
|
||||
}
|
||||
messages.push(msg);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user