Don't store token after first message

This commit is contained in:
Doug Tabuchi
2016-11-16 11:07:36 -05:00
parent 8a0bb664be
commit e67bfb941d

View File

@@ -735,9 +735,13 @@ typedef void (^BITLatestImageFetchCompletionBlock)(UIImage *_Nonnull latestImage
NSString *token = [jsonDictionary objectForKey:@"token"];
NSDictionary *feedbackObject = [jsonDictionary objectForKey:@"feedback"];
if (feedback && token && feedbackObject) {
// update the thread token, which is not available until the 1st message was successfully sent
self.token = token;
if (self.forceNewThread) {
self.token = nil;
} else {
// update the thread token, which is not available until the 1st message was successfully sent
self.token = token;
}
self.lastCheck = [NSDate date];
// add all new messages