From 0877cf236761eaefcd61b8fd5722272ffe1f12c5 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 16 May 2016 02:12:20 -0300 Subject: Store sent message id in lastmid, to deduplicate echoed messages Mostly fixes bug #76 This is crappy and error prone, just like the rest of the duplicate message handling code. It works, but it's going to get some echoes now and then, particularly in quick moving groupchats. I'm pretty sure this is a bug in the server, but the official clients have much more elaborate deduplication built-in, so they won't notice. --- facebook/facebook-api.c | 1 + 1 file changed, 1 insertion(+) (limited to 'facebook/facebook-api.c') diff --git a/facebook/facebook-api.c b/facebook/facebook-api.c index 3ddfa70..c8e5e30 100644 --- a/facebook/facebook-api.c +++ b/facebook/facebook-api.c @@ -2115,6 +2115,7 @@ fb_api_message_send(FbApi *api, FbApiMessage *msg) JsonBuilder *bldr; mid = FB_API_MSGID(g_get_real_time() / 1000, g_random_int()); + priv->lastmid = mid; if (msg->tid != 0) { tpfx = "tfbid_"; -- cgit v1.2.3