Fix wrong user set as owner of event in video conference alarm dialog

This commit is contained in:
Hadi Nategh 2020-04-08 15:14:39 +02:00
parent bdd0eef739
commit 23bd20b2cc
2 changed files with 9 additions and 4 deletions

View File

@ -1165,8 +1165,8 @@ class calendar_boupdate extends calendar_bo
array('egw_pr_notify' => 1,
'type' => $m_type,
'videoconference' => $details['videoconference'],
'account_id' => $userid,
'name' => $fullname
'account_id' => $senderid,
'name' => Api\Accounts::username($senderid)
)
+ ($alarm ? ['alarm-offset' => (int)$alarm['offset']] : []));
}

View File

@ -358,8 +358,13 @@
case EGW_PR_NOTIFY_HEIGH:
if (notifymessages[id]['extra_data']['videoconference'] && notifymessages[id]['extra_data']['alarm-offset'] <= 300)
{
app.status.notificationPopup(notifymessages[id]['extra_data']['videoconference'],
notifymessages[id]['extra_data']['account_id'], notifymessages[id]['extra_data']['name']);
app.status.scheduled_receivedCall({
url: notifymessages[id]['extra_data']['videoconference'],
account_id: notifymessages[id]['extra_data']['account_id'],
avatar: 'account:'+ notifymessages[id]['extra_data']['account_id'],
title: notifymessages[id]['data']['title'],
owner: notifymessages[id]['extra_data']['name']
});
}
else {
this.toggle(true);