Don't overwrite draft after GIF send.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-10-26 15:17:01 -04:00
parent 569e6808a4
commit f95e599c55
2 changed files with 6 additions and 2 deletions

View file

@ -173,7 +173,6 @@ NS_ASSUME_NONNULL_BEGIN
return [self.text ows_stripped];
}
#pragma mark - UITextViewDelegate
- (void)textViewDidBeginEditing:(UITextView *)textView

View file

@ -225,6 +225,7 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
@property (nonatomic) BOOL viewHasEverAppeared;
@property (nonatomic) BOOL wasScrolledToBottomBeforeKeyboardShow;
@property (nonatomic) BOOL wasScrolledToBottomBeforeLayoutChange;
@property (nonatomic) BOOL hasLoadedDraft;
@end
@ -459,7 +460,11 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
[self.inputToolbar endEditing:TRUE];
} else {
self.inputToolbar.hidden = NO;
[self loadDraftInCompose];
if (!self.hasLoadedDraft) {
self.hasLoadedDraft = YES;
[self loadDraftInCompose];
}
}
}