Skip loading of participant before writing messages to them.
In some implementations of the Store interface, it's possible that the
media node has not yet persisted the participant when we are trying to
send it messages. In which case we should not error on loading of the
participant.
@@ -339,11 +339,6 @@ func (s *RoomService) writeParticipantMessage(ctx context.Context, room livekit.
return twirpAuthError(err)
}
- _, err := s.roomStore.LoadParticipant(ctx, room, identity)
- if err != nil {
- return err
- }
-
return s.router.WriteParticipantRTC(ctx, room, identity, msg)
}
