bitlbee / bitlbee-facebook

Facebook protocol plugin for BitlBee
GNU General Public License v2.0
282 stars 43 forks source link

facebook group chat echos my messages #76

Closed malinkb closed 8 years ago

malinkb commented 8 years ago

When I send a message or write to the group chat buffer, I get the message in retur.

Just like if you use echo from a shell.

dequis commented 8 years ago

Issue in the other tracker: https://github.com/jgeboski/purple-facebook/issues/226

manavortex commented 8 years ago

Hey, I think for Facebook the magic is somewhere inside

    for (m = thrd->users, j = 0; (m != NULL) && (j < 3); m = m->next, j++) {
        user = m->data;
        g_string_append(line, (j != 0) ? ", " : "  ");
        g_string_append(line, user->name);
    }

..?

I'm running VERSION BitlBee-LIBPURPLE 3.4.2+20160326+master+17-g64b4263-git Linux/x86_64 with self_messages = `false', weechat version was 1.3 (currently updating to 1.4 after noticing that there's an update).

Will happily provide further info.

dequis commented 8 years ago

@manavortex That's the code that writes the list of participants in the third column of the 'fbchats' command

kimmov-kipe commented 8 years ago

Experienced this today for the first time. Might it be that this only occurs in groupchats started by you yourselves? That's the situation I have here. Other groupchats started by other people (which I only had before today) are not echoing my lines, only these two chats I opened myself today.

auscompgeek commented 8 years ago

@kimmov-kipe I'm reproducing this bug in a single group chat I'm in, of which I did not create, so it's not that.

anlag commented 8 years ago

I'm experiencing this as well. This behaviour started when I updated to bitlbee 3.4.2. The bitlbee-facebook plugin version is however the same as before, 1.0.0. I have the issue in all chats that I've tried; I don't believe I created any of them.

Considered that it might be an issue with carrying an old profile from the previous bitlbee version, so I tried creating a clean one and re-adding the Facebook account, but it happens in the same way.

dequis commented 8 years ago

@anlag You're probably talking about a different issue. Try rebuilding the plugin.

dequis commented 8 years ago

Just pushed 0877cf236761eaefcd61b8fd5722272ffe1f12c5 which "fixes" this by saving the sent message ID, to be handled by the message deduplication code (which was added when the server started sending repeated messages many times). This isn't perfect and will fail with fast moving chats, but better than nothing.