mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #01721
[Bug 638050] Re: Message count not updating
Hi Paul,
>From memory, the sendemail flag is intended for development where you
may want your mahara site to be using live data without e-mailing out
those real users about your test setup. Messages will only be marked as
unread if the email notification is set to internal, or that users'
email settings are to not receive e-mail. Here's a more detailed
explanation of the workflow if you're interested.
Messages are sent using the notify_user() function provided in lib/activity.php which checks the notification method, and calls the notify_user() function for that notification method.
The message is initially marked as read and notify_user() is called for the relevant notification method.
If an exception was thrown when sending the message, the message is marked as unread.
sendemail is only tested in the email_user function of lib/user.php. It doesn't throw an exception, but returns as though the e-mail were sent correctly - because it's intended for developers testing other functionality. We want it to behave as though the message was sent.
Since the function did not throw an exception, the message is never marked as unread.
If you disable e-mail for a user, and try sending that user a message,
the message should be marked unread.
Andrew
--
Message count not updating
https://bugs.launchpad.net/bugs/638050
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Status in Mahara ePortfolio: Invalid
Bug description:
Sorry to bother you again.
It has been brought to my attention that when a new message is sent too a friend/person on mahara the number count at the top of the screen is not increasing when there is an unread message it stays on 0.
- version of Mahara 1.3
- operating system (Linux)
- database (Postgres)
- Google chrome/ firefox/ IE
Please see the attached image to hopefully explain further.
There does not seem to be anything in the error log relating to messages and not error message is displayed.
Many thanks
Paul
References