Conference call: bug fix: Do not show the "Ongoing conference call" banner if the setting is disabled

This commit is contained in:
manuroe
2016-08-11 09:31:09 +02:00
parent b9fad75210
commit 23ccec1199
+2 -1
View File
@@ -2342,7 +2342,8 @@
{
[roomActivitiesView displayNetworkErrorNotification:NSLocalizedStringFromTable(@"room_offline_notification", @"Vector", nil)];
}
else if (customizedRoomDataSource.room.state.isOngoingConferenceCall)
else if ([[NSUserDefaults standardUserDefaults] boolForKey:@"labsEnableConferenceCall"]
&& customizedRoomDataSource.room.state.isOngoingConferenceCall)
{
// Show the "Ongoing conference call" banner only if the user is not in the conference
MXCall *callInRoom = [self.roomDataSource.mxSession.callManager callInRoom:self.roomDataSource.roomId];