1.1 --- a/Plugins/Twitter Plugin/AITwitterAccount.m Fri Oct 16 10:12:34 2009 -0400
1.2 +++ b/Plugins/Twitter Plugin/AITwitterAccount.m Thu Nov 19 21:12:23 2009 -0500
1.3 @@ -1195,6 +1195,25 @@
1.4 }
1.5
1.6 /*!
1.7 + * @brief Retweet the selected tweet.
1.8 + *
1.9 + * Attempts to retweet a tweet.
1.10 + * Prints a status message in the chat on success/failure, behaves identical to sending a new tweet.
1.11 + */
1.12 +- (void)retweetTweet:(NSString *)tweetID
1.13 +{
1.14 + NSString *requestID = [twitterEngine retweetUpdate:tweetID];
1.15 +
1.16 + if (requestID) {
1.17 + [self setRequestType:AITwitterSendUpdate
1.18 + forRequestID:requestID
1.19 + withDictionary:[NSDictionary dictionaryWithObjectsAndKeys:tweetID, @"tweetID", nil]];
1.20 + } else {
1.21 + [self.timelineChat receivedError:[NSNumber numberWithInt:AIChatMessageSendingConnectionError]];
1.22 + }
1.23 +}
1.24 +
1.25 +/*!
1.26 * @brief Toggle the favorite status for a tweet.
1.27 *
1.28 * Attempts to favorite a tweet. If that fails, it removes favorite status.
1.29 @@ -1708,7 +1727,7 @@
1.30 AIChat *chat = [[self dictionaryForRequestID:identifier] objectForKey:@"Chat"];
1.31
1.32 if (chat) {
1.33 - [chat receivedError:[NSNumber numberWithInt:AIChatUnknownError]];
1.34 + [chat receivedError:[NSNumber numberWithInt:AIChatMessageSendingConnectionError]];
1.35
1.36 AILogWithSignature(@"%@ Chat send error on %@", self, chat);
1.37 }
1.38 @@ -1896,7 +1915,7 @@
1.39 * @brief Status updates received
1.40 */
1.41 - (void)statusesReceived:(NSArray *)statuses forRequest:(NSString *)identifier
1.42 -{
1.43 +{
1.44 if([self requestTypeForRequestID:identifier] == AITwitterUpdateFollowedTimeline ||
1.45 [self requestTypeForRequestID:identifier] == AITwitterUpdateReplies) {
1.46 NSString *lastID;