Ticket #470: jabber_groupchat_ignore_echo.patch

File jabber_groupchat_ignore_echo.patch, 612 bytes (added by paul.t.hinze@…, at 2008-12-23T19:53:54Z)

Patch that fixes the described problem.

  • protocols/jabber/conference.c

    === modified file 'protocols/jabber/conference.c'
     
    302302        struct jabber_chat *jc = chat ? chat->data : NULL;
    303303        char *s;
    304304       
     305        /* Handles backlog */
    305306        if( bud == NULL || ( jc && ~jc->flags & JCFLAG_MESSAGE_SENT && bud == jc->me ) )
    306307        {
    307308                char *nick;
     
    357358                return;
    358359        }
    359360       
     361        /* Ignore echos of sent messages */
     362        if( jc && strcmp( xt_find_attr( node, "from" ), jc->me->full_jid ) == 0 ) {
     363                return;
     364        }
     365
    360366        if( subject )
    361367        {
    362368                s = strchr( bud->ext_jid, '/' );