First off, throwing an error that can only be caught using "uncaughtException" is a bad practice. Instead the AgentSDK object will emit "error" events when they are caught.
Second, sometimes the participantsPId will not have an entry for a participant in one of the dialogs. In these cases the user will be ignored and omitted from the event that is emitted as "notification", a "warn" will also be emitted with a message "invalid participant on conversation". If this user's state is "SUGGESTED", no warn will be emitted.
First off, throwing an error that can only be caught using "uncaughtException" is a bad practice. Instead the AgentSDK object will emit "error" events when they are caught.
Second, sometimes the participantsPId will not have an entry for a participant in one of the dialogs. In these cases the user will be ignored and omitted from the event that is emitted as "notification", a "warn" will also be emitted with a message "invalid participant on conversation". If this user's state is "SUGGESTED", no warn will be emitted.