Handled cases where prev_content for state events is null.
Added joining a room from a room object.