mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
BugFix: Call button is still visible in production builds #142
The call button is hidden when no call manager is available.
This commit is contained in:
@@ -56,6 +56,8 @@
|
||||
// Remove default toolbar background color
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
|
||||
_supportCallOption = YES;
|
||||
|
||||
self.rightInputToolbarButton.hidden = YES;
|
||||
|
||||
self.separatorView.backgroundColor = kVectorColorSiver;
|
||||
@@ -71,6 +73,25 @@
|
||||
self.placeholder = NSLocalizedStringFromTable(@"room_message_placeholder", @"Vector", nil);
|
||||
}
|
||||
|
||||
- (void)setSupportCallOption:(BOOL)supportCallOption
|
||||
{
|
||||
if (_supportCallOption != supportCallOption)
|
||||
{
|
||||
_supportCallOption = supportCallOption;
|
||||
|
||||
if (supportCallOption)
|
||||
{
|
||||
self.voiceCallButtonWidthConstraint.constant = 46;
|
||||
}
|
||||
else
|
||||
{
|
||||
self.voiceCallButtonWidthConstraint.constant = 0;
|
||||
}
|
||||
|
||||
[self setNeedsUpdateConstraints];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - HPGrowingTextView delegate
|
||||
|
||||
//- (BOOL)growingTextViewShouldReturn:(HPGrowingTextView *)hpGrowingTextView
|
||||
|
||||
Reference in New Issue
Block a user