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 ddac2c7fed
commit 8f99a9f7b8
3 changed files with 6 additions and 5 deletions
+4 -4
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