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:
Steve Howell
2017-07-14 13:30:23 -04:00
committed by Tim Abbott
parent d3cce041a4
commit 475eb21a5e
18 changed files with 203 additions and 360 deletions

View File

@@ -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;