MDL-64058 core_message: fix logic driving conversation section expansion
authorJake Dallimore <jake@moodle.com>
Mon, 19 Nov 2018 07:32:59 +0000 (15:32 +0800)
committerJake Dallimore <jake@moodle.com>
Tue, 20 Nov 2018 00:56:37 +0000 (08:56 +0800)
commit42832918893c1ce0c084ec11510d55d5d31d643e
tree6f57112eac9d4fb8b88e2bff2c36fedea495f1e2
parentda714be155beabb5b66a4c771c308ec52a3dc3f4
MDL-64058 core_message: fix logic driving conversation section expansion

Unread conversations should be given priority over read. If one or more
sections have unread conversations, prioritise favourites over group and
group over individual. The same applies if all conversations are read.
message/lib.php