X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmessage.php;h=c024cbe144cd49eaaa31e80ee1f7064d6b6222c9;hb=13a4483c59d916b48f9585beb7f5a71328055b72;hp=c62a15eb233d21addfc03e86655097158dd3c4ce;hpb=561472b975c1f5248239baaf63dba3e7128d0dd0;p=friendica.git diff --git a/mod/message.php b/mod/message.php index c62a15eb23..c024cbe144 100644 --- a/mod/message.php +++ b/mod/message.php @@ -352,13 +352,7 @@ function message_content(App $a) $messages = DBA::toArray($messages_stmt); DBA::update('mail', ['seen' => 1], ['parent-uri' => $message['parent-uri'], 'uid' => local_user()]); - - if ($message['convid']) { - // Clear Diaspora private message notifications - DBA::update('notify', ['seen' => 1], ['type' => Type::MAIL, 'parent' => $message['convid'], 'uid' => local_user()]); - } - // Clear DFRN private message notifications - DBA::update('notify', ['seen' => 1], ['type' => Type::MAIL, 'parent' => $message['parent-uri'], 'uid' => local_user()]); + DBA::update('notify', ['seen' => 1], ['type' => Type::MAIL, 'parent' => $message['id'], 'uid' => local_user()]); } else { $messages = false; }