Skip to content

Commit

Permalink
Update API for Sparrow version 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
skahack committed Aug 11, 2011
1 parent bddbba9 commit 1a44590
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SparrowEmojiPlugin/Classes/SparrowEmojiPlugin.m
Expand Up @@ -24,8 +24,8 @@ + (void)load {
Class class = objc_getClass("LEPAbstractMessage");
Class class1 = objc_getClass("NSData");

[class jr_swizzleMethod:@selector(mmBodyHTMLRenderingWithAccount:withWebView:hideQuoted:enableActivity:printing:)
withMethod:@selector(my_mmBodyHTMLRenderingWithAccount:withWebView:hideQuoted:enableActivity:printing:) error:NULL];
[class jr_swizzleMethod:@selector(mmBodyHTMLRenderingWithAccount:withWebView:hideQuoted:enableActivity:printing:inlineAttachmentsEnabled:)
withMethod:@selector(my_mmBodyHTMLRenderingWithAccount:withWebView:hideQuoted:enableActivity:printing:inlineAttachmentsEnabled:) error:NULL];

[class1 jr_swizzleMethod:@selector(lepStringWithCharset:)
withMethod:@selector(my_lepStringWithCharset:) error:NULL];
Expand Down Expand Up @@ -108,14 +108,14 @@ - (NSString *)replaceEmojiString:(NSString *)message sender:(NSString *)address

@implementation NSObject(SparrowEmojiPlugin)

- (NSString *)my_mmBodyHTMLRenderingWithAccount:(id)arg1 withWebView:(id)arg2 hideQuoted:(BOOL)arg3 enableActivity:(BOOL)arg4 printing:(BOOL)arg5 {
- (NSString *)my_mmBodyHTMLRenderingWithAccount:(id)arg1 withWebView:(id)arg2 hideQuoted:(BOOL)arg3 enableActivity:(BOOL)arg4 printing:(BOOL)arg5 inlineAttachmentsEnabled:(BOOL)arg6 {

SparrowEmojiPlugin *sep = [SparrowEmojiPlugin sharedInstance];

NSString *address = [[[self performSelector:@selector(header)] performSelector:@selector(from)] performSelector:@selector(mailbox)];
sep.currentAddress = address;

NSString *str = [self my_mmBodyHTMLRenderingWithAccount:arg1 withWebView:arg2 hideQuoted:arg3 enableActivity:arg4 printing:arg5];
NSString *str = [self my_mmBodyHTMLRenderingWithAccount:arg1 withWebView:arg2 hideQuoted:arg3 enableActivity:arg4 printing:arg5 inlineAttachmentsEnabled:arg6];

return [sep replaceEmojiString:str sender:address];

Expand Down

0 comments on commit 1a44590

Please sign in to comment.