mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Don't overwrite draft after GIF send.
// FREEBIE
This commit is contained in:
parent
569e6808a4
commit
f95e599c55
2 changed files with 6 additions and 2 deletions
|
@ -173,7 +173,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
return [self.text ows_stripped];
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - UITextViewDelegate
|
||||
|
||||
- (void)textViewDidBeginEditing:(UITextView *)textView
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue