Plugins/Purple Service/adiumPurpleConversation.m
changeset 2724 165b2bbc8f20
parent 2231 177b25c92580
child 3065 b25b0a269395
     1.1 --- a/Plugins/Purple Service/adiumPurpleConversation.m	Sun May 17 18:38:43 2009 -0400
     1.2 +++ b/Plugins/Purple Service/adiumPurpleConversation.m	Sun Nov 01 14:04:11 2009 -0500
     1.3 @@ -85,7 +85,7 @@
     1.4  			[account receivedEventForChat:groupChatLookupFromConv(conv)
     1.5  								  message:messageString
     1.6  									 date:date
     1.7 -									flags:flags];
     1.8 +									flags:[NSNumber numberWithInteger:flags]];
     1.9  		} else {
    1.10  			NSAttributedString	*attributedMessage = [AIHTMLDecoder decodeHTML:messageString];
    1.11  			NSNumber			*purpleMessageFlags = [NSNumber numberWithInt:flags];
    1.12 @@ -213,15 +213,15 @@
    1.13  		 */
    1.14  		if (errorType != AIChatUnknownError) {
    1.15  			[accountLookup(purple_conversation_get_account(conv)) performSelector:@selector(errorForChat:type:)
    1.16 -			 withObject:chat
    1.17 -			 withObject:[NSNumber numberWithInt:errorType]
    1.18 -			 afterDelay:0];
    1.19 +																	   withObject:chat
    1.20 +																	   withObject:[NSNumber numberWithInt:errorType]
    1.21 +																	   afterDelay:0];
    1.22  		} else {
    1.23  			[adium.contentController performSelector:@selector(displayEvent:ofType:inChat:)
    1.24 -			 withObject:messageString
    1.25 -			 withObject:@"libpurpleMessage"
    1.26 -			 withObject:chat
    1.27 -			 afterDelay:0];
    1.28 +										  withObject:messageString
    1.29 +										  withObject:@"libpurpleMessage"
    1.30 +										  withObject:chat
    1.31 +										  afterDelay:0];
    1.32  		}
    1.33  		
    1.34  		AILog(@"*** Conversation error %@: %@", chat, messageString);
    1.35 @@ -264,10 +264,12 @@
    1.36  		if (shouldDisplayMessage) {
    1.37  			CBPurpleAccount *account = accountLookup(purple_conversation_get_account(conv));
    1.38  			
    1.39 -			[account receivedEventForChat:chat
    1.40 -								  message:messageString
    1.41 -									 date:[NSDate dateWithTimeIntervalSince1970:mtime]
    1.42 -									flags:flags];
    1.43 +			[account performSelector:@selector(receivedEventForChat:message:date:flags:)
    1.44 +						  withObject:chat
    1.45 +						  withObject:messageString
    1.46 +						  withObject:[NSDate dateWithTimeIntervalSince1970:mtime]
    1.47 +						  withObject:[NSNumber numberWithInteger:flags]
    1.48 +						  afterDelay:0];
    1.49  		}
    1.50  	}
    1.51  }