Adding markMessageAsRead function to MessageProvider.