Patch from mathuaerknedam to remove outgoing (on top of incoming) for AIContentEvents. Fixes #11588.
authorZachary West <zacw@adium.im>
Fri Oct 16 11:06:48 2009 -0400 (2009-10-16)
changeset 27331b04b22253d4
parent 2732 7a0cad25ad64
child 2734 6c883e681d52
Patch from mathuaerknedam to remove outgoing (on top of incoming) for AIContentEvents. Fixes #11588.
Frameworks/Adium Framework/Source/AIContentStatus.m
     1.1 --- a/Frameworks/Adium Framework/Source/AIContentStatus.m	Fri Oct 16 11:06:11 2009 -0400
     1.2 +++ b/Frameworks/Adium Framework/Source/AIContentStatus.m	Fri Oct 16 11:06:48 2009 -0400
     1.3 @@ -70,9 +70,13 @@
     1.4  	NSMutableArray *classes = [super displayClasses];
     1.5  	
     1.6  	//The notion of direction is not very useful on statuses
     1.7 -	NSUInteger idx = [classes indexOfObject:@"incoming"];
     1.8 -	if(idx != NSNotFound)
     1.9 -		[classes removeObjectAtIndex:idx];
    1.10 +	NSUInteger idxin = [classes indexOfObject:@"incoming"];
    1.11 +	if(idxin != NSNotFound)
    1.12 +		[classes removeObjectAtIndex:idxin];
    1.13 +	
    1.14 +	NSUInteger idxout = [classes indexOfObject:@"outgoing"];
    1.15 +	if(idxout != NSNotFound)
    1.16 +		[classes removeObjectAtIndex:idxout];
    1.17  	
    1.18  	[classes addObject:@"status"];
    1.19  	[classes addObject:statusType];