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:
giomfo
2016-03-11 14:45:06 +01:00
parent 23787ce1ef
commit 6c24f9e108
4 changed files with 45 additions and 7 deletions
+11 -2
View File
@@ -233,8 +233,11 @@
if (self.roomDataSource)
{
// this room view controller has its own typing management.
self.roomDataSource.showTypingNotifications = NO;
// this room view controller has its own typing management.
self.roomDataSource.showTypingNotifications = NO;
// Check whether call option is supported
((RoomInputToolbarView*)self.inputToolbarView).supportCallOption = (self.roomDataSource.mxSession.callManager != nil);
}
}
@@ -342,6 +345,12 @@
{
customizedRoomDataSource = (RoomDataSource*)dataSource;
}
if (self.inputToolbarView && [self.inputToolbarView isKindOfClass:RoomInputToolbarView.class])
{
// Update call option support
((RoomInputToolbarView*)self.inputToolbarView).supportCallOption = (dataSource.mxSession.callManager != nil);
}
}
- (void)updateViewControllerAppearanceOnRoomDataSourceState