purple-facebook icon indicating copy to clipboard operation
purple-facebook copied to clipboard

sending duplicate messages

Open brianjmurrell opened this issue 7 years ago • 15 comments

When I send a message, it seems to actually get sent multiple times. The person on the other end gets duplicate copies. I can even see the duplicates on another device I am logged in with.

I'm using 0.9.5-9ff9acf9fa14.

brianjmurrell avatar Oct 20 '17 19:10 brianjmurrell

I've seen this happen when people share access tokens across multiple instances of this plugin. If you do that, force one of them to log out by deleting the account or revoking the session from the security section of facebook

dequis avatar Oct 21 '17 02:10 dequis

I don't believe I have multiple instances of the plugin. There is only the one machine that I use the purple facebook plugin.

brianjmurrell avatar Oct 22 '17 00:10 brianjmurrell

I am experiencing the same/very similar issue on the sailfish X implementation. I receive messages from myself and duplicates of all messages that are not marked as read. If I access facebook messenger to mark the messages as read they stop appearing. Until then it keeps spamming me with the messages I have received and sent.

dizzi90 avatar Oct 25 '17 14:10 dizzi90

the sailfish os implementation

The what

dequis avatar Oct 26 '17 00:10 dequis

@dequis I think they're talking about this: https://openrepos.net/content/nodevel/facebook-messenger-account

rodneyrod avatar Oct 26 '17 01:10 rodneyrod

@dequis Thats just a an frontend to make an account. It still uses telepathy-haze. So its not a special case

Thaodan avatar Oct 26 '17 03:10 Thaodan

Oh, telepathy-haze. That is a different issue from what OP posted. Receiving incoming messages from others multiple times in clients that aren't pidgin is #280

Sending your own messages multiple times is what this ticket is about. It's something else.

dequis avatar Oct 26 '17 11:10 dequis

Ok, maybe I mixed that up. I thought the issue lies in telepathy-haze as both messages types get resend when reconnecting (mine and other I got). All messages I send are seen as I send those to me.

Thaodan avatar Oct 26 '17 15:10 Thaodan

I get this very often when I'm on planes or anywhere with high latency or high packet loss...

jaymzh avatar Nov 10 '17 21:11 jaymzh

I'm seeing many messages I send being duplicated and constantly reappearing. It is possible other messages from other people are also duplicated. I am using pidgin-2.13.0-1.mga7 on mageia 7.

shlomif avatar Apr 10 '18 18:04 shlomif

I still have this issue, where sometimes my messages are sent multiple (sometimes even 20) times. I have seen this happen only in group chats so far, and only when I send URL links. I do use pidgin plugin on multiple devices, but every device has its own app password, none is shared. Any ideas? Debug log sent by email.

ghost avatar Jun 08 '18 09:06 ghost

@jurajQ: your debug log doesn't have any sent messages, just a normal connection and disconnection with no activity inbetween, so i can't really do much with this.

dequis avatar Jun 09 '18 18:06 dequis

Aha! Got another one from @jurajQ. Now this is interesting. Thanks!

Trimmed down debug log:

(10:41:47) facebook: Writing message (topic: /send_message2)
(10:41:48) facebook: Reading 4 (flags: 0x2)
(10:41:48) facebook: Reading 3 (flags: 0x0)
(10:41:48) facebook: Reading message (topic: /t_p)
(10:41:48) facebook: Presence: [...] (1)
(10:41:48) blist: Updating buddy status for [...] (Facebook)
(10:41:49) facebook: Attempting to reconnect the MQTT stream...

Then it reconnects and tries to resend the message because it didn't get acked by the server. Repeat in a loop possibly forever, until ctrl-c.

The message sent is a direct link to a knowyourmeme cdn image. Seems like a poor choice to flag as likely-spam if that's what's happening. But if it was spam filtering why is it killing the (easily reconnectable) mqtt stream without dropping the message?

Does this happen with all the links, and all groupchats?

dequis avatar Jun 10 '18 18:06 dequis

Hi, thanks for the swift reaction. Although I do not know if it's a spam issue, it does happen only for links and only for groupchats. It happens for many types of links, e.g. for youtube as well as other "trusted" sites.

I cannot say whether it happens for all groupchats, as I am sending links only in one. However, I cannot say that it happens for all links that I send. Many times, they are sent normally. I will try to find a pattern in where it happens (in work, at home etc) and for what types of links, but it's hard to experiment when one is bothering people in groupchats with 20 messages in a row :P

ghost avatar Jun 10 '18 19:06 ghost

Hi, I get the same here, and sometimes I receive a couple of messages many times (when I log in to pigdgin in the morning for exemple and I got messages in the night) The messages are received many times by ordered groups.

maybe a quite dirty fix could be in both receiving and emiting message to manage a small cache of latest message for let say 1-5seconds , an on a new message compare it to cache to know if it has to be resent (a full message cache or a hash sum of the message should do the trick)

This should not be overkill for this kind of program because of expected processed data amount. But I understand that my solution is not the proper way to solve the issue and that it would be preferable to find the root cause more than occulting the issue.

eregnier avatar Jun 28 '18 07:06 eregnier