Jitsi widget: add display or creation of jitsi conference under USE_JITSI_WIDGET compilation flag

This commit is contained in:
manuroe
2017-08-18 11:56:32 +02:00
parent 00f4d1da39
commit a7cfb02f1f
3 changed files with 16 additions and 2 deletions
+6 -1
View File
@@ -98,7 +98,9 @@ enum
enum
{
#ifdef USE_JITSI_WIDGET
LABS_MATRIX_APPS_INDEX = 0,
#endif
LABS_CRYPTO_INDEX,
LABS_COUNT
};
@@ -1914,6 +1916,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
}
else if (section == SETTINGS_SECTION_LABS_INDEX)
{
#ifdef USE_JITSI_WIDGET
if (row == LABS_MATRIX_APPS_INDEX)
{
MXKTableViewCellWithLabelAndSwitch* labelAndSwitchCell = [self getLabelAndSwitchCell:tableView forIndexPath:indexPath];
@@ -1926,7 +1929,9 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
cell = labelAndSwitchCell;
}
else if (row == LABS_CRYPTO_INDEX)
else
#endif
if (row == LABS_CRYPTO_INDEX)
{
MXSession* session = [[AppDelegate theDelegate].mxSessions objectAtIndex:0];