Cleanup some obsolete events, and fix double render bug on messageList when changing idea