Details
Description
I was debugging a problem reported by an user of moodle.ufsc.br where he cannot see the past sessions of a chat and found that moodle/mod/chat/report.php does a test to just prints sessions with more than one user. It is done in line 166:
if ($sessionend - $sessionstart > 60 and count($sessionusers) > 1) {
I think it is not a very good approach, mainly because no messages is showed to user.
Daniel - I looked at the annotation of that file and it looks like that particular test condition was written my Martin. I am not overly familiar with the chat module; however, it sounds like you are advocating that the 1 be changed to a 0 so that as long as there was a user - even if no one else responded that it would list. I am a fan of an expression that is somewhat related:
There are two reasons why I like to talk to myself. The first is that I like to talk to someone with good sense. The second is that I like to hear someone with good sense talk.
I am not sure if you are happy with the one minute duration check. Could you say more about what you think the best approach would be and perhaps a practical example of why it would be an improvement? Peace - Anthony