Adium

Changeset 14114

Show
Ignore:
Timestamp:
11/20/2005 06:42:15 PM (3 years ago)
Author:
evands
Message:

Mark outgoing content objects as being in progress just as we do incoming content objects; this way our chat controller knows when chats shouldn't truly be closed. Fixes the test case of sending %_safari and then closing the window leading to two chats being opened when it is received. Fixes #460

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/AIContentController.m

    r12887 r14114  
    185185                                                                                                                userInfo:[NSDictionary dictionaryWithObjectsAndKeys:inObject,@"Object",nil]]; 
    186186                        } 
    187                          
    188                         //Track that we are in the process of receiving this object 
    189                         [objectsBeingReceived addObject:inObject]; 
    190                          
     187 
    191188                        //Run the object through our incoming content filters 
    192189                        if ([inObject filterContent]) { 
     190                                //Track that we are in the process of receiving this object 
     191                                [objectsBeingReceived addObject:inObject]; 
     192 
    193193                                [self filterAttributedString:[inObject message] 
    194194                                                         usingFilterType:AIFilterContent 
     
    235235        //Only proceed if the chat allows it; if it doesn't, it will handle calling this method again when it is ready 
    236236        if ([[inObject chat] willBeginSendingContentObject:inObject]) { 
     237 
    237238                //Run the object through our outgoing content filters 
    238239                if ([inObject filterContent]) { 
     240                        //Track that we are in the process of send this object 
     241                        [objectsBeingReceived addObject:inObject]; 
     242 
    239243                        [self filterAttributedString:[inObject message] 
    240244                                                 usingFilterType:AIFilterContent