fix for voice-only users not appearing in the audio

This commit is contained in:
Chad Pilkey 2019-06-13 18:33:11 +00:00
parent a749aa6668
commit 6e26a1c73d

View File

@ -89,8 +89,9 @@ export default function addUser(meetingId, user) {
),
};
// Only add an empty VoiceUser if there isn't one already. We want to avoid overwriting good data
if (!VoiceUsers.findOne({ meetingId, intId: userId })) {
// Only add an empty VoiceUser if there isn't one already and if the user coming in isn't a
// dial-in user. We want to avoid overwriting good data
if (user.clientType !== 'dial-in-user' && !VoiceUsers.findOne({ meetingId, intId: userId })) {
addVoiceUser(meetingId, {
voiceUserId: '',
intId: userId,