mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
Only disable the composer if the room is yet to be created.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user