Update notification preferences when nothing is selected #1276 (#1514)

This commit is contained in:
Dinh Ngoc Hien 2017-10-09 21:11:48 +07:00 committed by Martin Edenhofer
parent fe8fba8cb9
commit fb8f07e6e9

View file

@ -134,11 +134,6 @@ class Index extends App.ControllerSubContent
online: true
}
# validation
if !params['notification_config']['matrix']
@log('error', 'invalid notification_config, matrix is missing')
return
# check missing channels
for key, value of params['notification_config']['matrix']
if !value.channel