Adium

Changeset 22833

Show
Ignore:
Timestamp:
03/05/2008 09:47:49 PM (9 months ago)
Author:
evands
Message:

When an account is removed from Adium, tell libpurple about it. Previously, we did not ever remove the libpurple information associated with the account. Refs #9384 where jas8522 noted that this should happen by asking if it did.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plugins/Purple Service/CBPurpleAccount.m

    r22823 r22833  
    27122712        if (account != NULL) { 
    27132713                //Remove our current account 
    2714                 [purpleThread removeAdiumAccount:self]; 
     2714                [[self purpleThread] removeAdiumAccount:self]; 
    27152715                 
    27162716                //Clear the reference to the PurpleAccount... it'll be created when needed 
    27172717                account = NULL; 
    27182718        } 
     2719} 
     2720 
     2721/*! 
     2722 * @brief The account will be deleted 
     2723 */ 
     2724- (void)willBeDeleted 
     2725{        
     2726        [super willBeDeleted]; 
     2727 
     2728        [[self purpleThread] removeAdiumAccount:self]; 
    27192729} 
    27202730