Next patch is for Roar plugin to avoid showing many popups when you join old groupchat room (groupchat with already written messages). I am not sure if this patch is correct because i commented many lines in original source code and made old groupchat check much more simpler. So anyone experienced should check these changes, but for me it works fine.
changed Roar listener mechanic how to detect old groupchats
This is still an issue and it is easier to reproduce with a large number of rooms and also with auto-join (10 rooms with 5-10 messages each). Also on some test machines a few first rooms are opened with a red tab title and a number of unread messages (though it only has an old history). This seems like another race condition when some code fires up faster than the GUI one or Roar's and Spark thinks that it receives new messages.