adium-1.4 2633:3ae33caf4352: Replace %serviceIconPath% in all me...

commits at adium.im commits at adium.im
Sat Oct 17 21:43:06 UTC 2009


details:	http://hg.adium.im/adium-1.4/rev/3ae33caf4352
revision:	2633:3ae33caf4352
author:		Zachary West <zacw at adium.im>
date:		Sat Oct 17 17:42:31 2009 -0400

Replace %serviceIconPath% in all messages, and in the header. Fixes #12665 (though not quite the same).

You probably don't want all content messages replacing with an <img /> with a set id, so let's limit it just to base template replacements (header, in other words).

diffs (24 lines):

diff -r 4e544bf1b994 -r 3ae33caf4352 Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 17 17:35:57 2009 -0400
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 17 17:42:31 2009 -0400
@@ -856,6 +856,10 @@
 	[inString replaceKeyword:@"%service%" 
 				  withString:[content.chat.account.service shortDescription]];
 	
+	[inString replaceKeyword:@"%serviceIconPath%"
+				  withString:[AIServiceIcons pathForServiceIconForServiceID:content.chat.account.service.serviceID
+																	   type:AIServiceIconLarge]];
+	
 	//message stuff
 	if ([content isKindOfClass:[AIContentMessage class]]) {
 		
@@ -1181,6 +1185,9 @@
 	[inString replaceKeyword:@"%serviceIconImg%"
 				  withString:serviceIconTag];
 	
+	[inString replaceKeyword:@"%serviceIconPath%"
+				  withString:serviceIconPath];
+	
 	[inString replaceKeyword:@"%timeOpened%"
 				  withString:[timeStampFormatter stringFromDate:[chat dateOpened]]];
 	




More information about the commits mailing list