Permalink
Browse files

Disabled default twitter recipient

  • Loading branch information...
1 parent 758dd95 commit 11381a3b7aaa140da78c72ef855c99366eb4c0eb @0xced committed Oct 20, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 Stealth Messenger/MessageViewController.m
View
4 Stealth Messenger/MessageViewController.m
@@ -62,11 +62,15 @@
NSString *myTwitterName(void)
{
+#if 0
ACAccountStore *accountStore = [[ACAccountStore alloc] init];
ACAccountType *twitterAccountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
[accountStore requestAccessToAccountsWithType:twitterAccountType withCompletionHandler:^(BOOL granted, NSError *error) {}];
ACAccount *twitterAccount = [[accountStore accountsWithAccountType:twitterAccountType] lastObject];
return twitterAccount.username;
+#else
+ return nil;
+#endif
}
@implementation MessageViewController

0 comments on commit 11381a3

Please sign in to comment.