Skip loading of participant before writing messages to them. (#654)

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.
This commit is contained in:
David Zhao
2022-04-24 23:09:06 -07:00
committed by GitHub
parent 4d7950ec2f
commit b9ee0b5800
-5
View File
@@ -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)
}