Make sure the status app is there before calling its functions

This commit is contained in:
Hadi Nategh 2020-08-21 14:57:52 +02:00
parent 86ddd9cb58
commit f87a5e0b5d

View File

@ -362,7 +362,8 @@
switch (notifymessages[id]['extra_data']['egw_pr_notify'])
{
case EGW_PR_NOTIFY_HEIGH:
if (notifymessages[id]['extra_data']['videoconference'] && notifymessages[id]['extra_data']['alarm-offset'] <= 300)
if (notifymessages[id]['extra_data']['videoconference'] && notifymessages[id]['extra_data']['alarm-offset'] <= 300 &&
app.status && typeof app.status.scheduled_receivedCall == 'function')
{
app.status.scheduled_receivedCall({
url: notifymessages[id]['extra_data']['videoconference'],