adium 3565:b5035f174e0c: Identify messages sent by the ourself i...

commits at adium.im commits at adium.im
Mon Nov 22 01:34:49 UTC 2010


details:	http://hg.adium.im/adium/rev/b5035f174e0c
revision:	3565:b5035f174e0c
author:		Stephen Holt <sholt at adium.im>
date:		Sun Nov 21 17:33:54 2010 -0800

Identify messages sent by the ourself in group chats.

diffs (26 lines):

diff -r 366db18a7289 -r b5035f174e0c Plugins/Purple Service/CBPurpleAccount.m
--- a/Plugins/Purple Service/CBPurpleAccount.m	Sun Nov 21 18:42:56 2010 -0600
+++ b/Plugins/Purple Service/CBPurpleAccount.m	Sun Nov 21 17:33:54 2010 -0800
@@ -1223,7 +1223,7 @@
 		// Display delayed messages as context.
 
 		AIContentContext *messageObject = [AIContentContext messageInChat:chat
-															   withSource:sourceContact
+															   withSource:[sourceContact.UID isEqualToString:self.UID]? (AIListObject *)self : (AIListObject *)sourceContact
 															  destination:self
 																	 date:date
 																  message:attributedMessage
@@ -1235,12 +1235,11 @@
 		
 	} else {
 		AIContentMessage *messageObject = [AIContentMessage messageInChat:chat
-															   withSource:sourceContact
+															   withSource:[sourceContact.UID isEqualToString:self.UID]? (AIListObject *)self : (AIListObject *)sourceContact
 															  destination:self
 																	 date:date
 																  message:attributedMessage
 																autoreply:(flags & PURPLE_MESSAGE_AUTO_RESP) != 0];
-		
 		[adium.contentController receiveContentObject:messageObject];	
 	}
 }




More information about the commits mailing list