make the dm visual notification work again

This commit is contained in:
nobody 2020-08-20 17:36:01 -07:00
parent 8fb438b2e4
commit 107ec9a1eb
3 changed files with 3 additions and 3 deletions

View file

@ -545,7 +545,7 @@ class Enotify {
// (probably would be better that way)
if (!$always_show_in_notices) {
if (($params['type'] == NOTIFY_WALL) || ($params['type'] == NOTIFY_MAIL) || ($params['type'] == NOTIFY_INTRO)) {
if (($params['type'] == NOTIFY_WALL) || ($params['type'] == NOTIFY_INTRO)) {
$seen = 1;
}
// set back to unseen for moderated wall posts

View file

@ -664,7 +664,7 @@ class Channel {
'$vnotify1' => array('vnotify1', t('Unseen stream activity'), ($vnotify & VNOTIFY_NETWORK), VNOTIFY_NETWORK, '', $yes_no),
'$vnotify2' => array('vnotify2', t('Unseen channel activity'), ($vnotify & VNOTIFY_CHANNEL), VNOTIFY_CHANNEL, '', $yes_no),
// '$vnotify3' => array('vnotify3', t('Unseen direct messages'), ($vnotify & VNOTIFY_MAIL), VNOTIFY_MAIL, t('Recommended'), $yes_no),
'$vnotify3' => array('vnotify3', t('Unseen direct messages'), ($vnotify & VNOTIFY_MAIL), VNOTIFY_MAIL, t('Recommended'), $yes_no),
'$vnotify4' => array('vnotify4', t('Upcoming events'), ($vnotify & VNOTIFY_EVENT), VNOTIFY_EVENT, '', $yes_no),
'$vnotify5' => array('vnotify5', t('Events today'), ($vnotify & VNOTIFY_EVENTTODAY), VNOTIFY_EVENTTODAY, '', $yes_no),
'$vnotify6' => array('vnotify6', t('Upcoming birthdays'), ($vnotify & VNOTIFY_BIRTHDAY), VNOTIFY_BIRTHDAY, t('Not available in all themes'), $yes_no),

View file

@ -168,7 +168,7 @@
<div class="group">
{{include file="field_intcheckbox.tpl" field=$vnotify1}}
{{include file="field_intcheckbox.tpl" field=$vnotify2}}
{{*include file="field_intcheckbox.tpl" field=$vnotify3*}}
{{include file="field_intcheckbox.tpl" field=$vnotify3}}
{{include file="field_intcheckbox.tpl" field=$vnotify4}}
{{include file="field_intcheckbox.tpl" field=$vnotify5}}
{{include file="field_intcheckbox.tpl" field=$vnotify6}}