get groups for user then messages for each group