Only disable the composer if the room is yet to be created.

This commit is contained in:
Doug 2022-09-16 19:46:11 +01:00
parent 60c8be0e8f
commit 61100ba2ed
3 changed files with 6 additions and 5 deletions

View file

@ -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")
}

View file

@ -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
View file

@ -0,0 +1 @@
Message Composer: Stop the keyboard jumping after sending a message on certain devices.