mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
+ Prevent Messages without any text from ever being sent.
This commit is contained in:
@@ -327,7 +327,7 @@
|
||||
}
|
||||
|
||||
- (void)updateBarButtonState {
|
||||
if (self.textView.text.length == 0 && self.attachments.count == 0 ) {
|
||||
if (self.textView.text.length > 0 ) {
|
||||
self.navigationItem.rightBarButtonItem.enabled = NO;
|
||||
} else {
|
||||
self.navigationItem.rightBarButtonItem.enabled = YES;
|
||||
|
||||
Reference in New Issue
Block a user