mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 15:22:39 +00:00
Only disable the composer if the room is yet to be created.
This commit is contained in:
parent
60c8be0e8f
commit
61100ba2ed
3 changed files with 6 additions and 5 deletions
|
@ -187,7 +187,7 @@ public class VectorL10n: NSObject {
|
|||
public static var allChatsEmptySpaceInformation: String {
|
||||
return VectorL10n.tr("Vector", "all_chats_empty_space_information")
|
||||
}
|
||||
/// This is where you're unread messages will show up, when you have some.
|
||||
/// This is where your unread messages will show up, when you have some.
|
||||
public static var allChatsEmptyUnreadsPlaceholderMessage: String {
|
||||
return VectorL10n.tr("Vector", "all_chats_empty_unreads_placeholder_message")
|
||||
}
|
||||
|
|
|
@ -1544,10 +1544,6 @@ static CGSize kThreadListBarButtonItemImageSize;
|
|||
*/
|
||||
- (void)createDiscussionIfNeeded:(void (^)(BOOL readyToSend))onComplete
|
||||
{
|
||||
// Disable the input tool bar during this operation. This prevents us from creating several discussions, or
|
||||
// trying to send several invites.
|
||||
self.inputToolbarView.userInteractionEnabled = false;
|
||||
|
||||
void(^completion)(BOOL) = ^(BOOL readyToSend) {
|
||||
self.inputToolbarView.userInteractionEnabled = true;
|
||||
if (onComplete) {
|
||||
|
@ -1557,6 +1553,10 @@ static CGSize kThreadListBarButtonItemImageSize;
|
|||
|
||||
if (self.directChatTargetUser)
|
||||
{
|
||||
// Disable the input tool bar during this operation. This prevents us from creating several discussions, or
|
||||
// trying to send several invites.
|
||||
self.inputToolbarView.userInteractionEnabled = false;
|
||||
|
||||
[self createDiscussionWithUser:self.directChatTargetUser completion:completion];
|
||||
}
|
||||
else
|
||||
|
|
1
changelog.d/6708.bugfix
Normal file
1
changelog.d/6708.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Message Composer: Stop the keyboard jumping after sending a message on certain devices.
|
Loading…
Reference in a new issue