mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 10:55:11 +00:00
when clicking a notification to view a private mail message, actually view that message instead of the most recent.
This commit is contained in:
parent
f43428aacf
commit
198d2ab607
1 changed files with 9 additions and 2 deletions
|
@ -296,6 +296,10 @@ class Mail extends \Zotlabs\Web\Controller {
|
|||
|
||||
return $o;
|
||||
}
|
||||
|
||||
$last_message = private_messages_list(local_channel(), $mailbox, 0, 1);
|
||||
|
||||
$mid = ((argc() > 2) && (intval(argv(2)))) ? argv(2) : $last_message[0]['id'];
|
||||
|
||||
switch(argv(1)) {
|
||||
case 'combined':
|
||||
|
@ -309,12 +313,15 @@ class Mail extends \Zotlabs\Web\Controller {
|
|||
break;
|
||||
default:
|
||||
$mailbox = 'combined';
|
||||
|
||||
// notifications direct to mail/nn
|
||||
|
||||
if(intval(argv(1)))
|
||||
$mid = intval(argv(1));
|
||||
break;
|
||||
}
|
||||
|
||||
$last_message = private_messages_list(local_channel(), $mailbox, 0, 1);
|
||||
|
||||
$mid = ((argc() > 2) && (intval(argv(2)))) ? argv(2) : $last_message[0]['id'];
|
||||
|
||||
$plaintext = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue