Changeset 8b61469 for protocols


Ignore:
Timestamp:
2010-07-30T14:28:22Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
8f984a0
Parents:
b925666
Message:

Don't notify the UI about group changes if there wasn't, in fact, a change.
This should stop the odd left+joins that were happening sometimes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rb925666 r8b61469  
    382382        bee_user_t *bu;
    383383        bee_t *bee = ic->bee;
     384        bee_group_t *oldg;
    384385       
    385386        if( !( bu = bee_user_by_handle( bee, ic, handle ) ) )
    386387                bu = bee_user_new( bee, ic, handle, 0 );
    387388       
     389        oldg = bu->group;
    388390        bu->group = bee_group_by_name( bee, group, TRUE );
    389391       
    390         if( bee->ui->user_group )
     392        if( bee->ui->user_group && bu->group != oldg )
    391393                bee->ui->user_group( bee, bu );
    392394}
Note: See TracChangeset for help on using the changeset viewer.