Merge pull request #7621 from capilkey/fix-voice-user-status

Fix for voice-only users not appearing in the audio
This commit is contained in:
Anton Georgiev 2019-06-13 14:44:10 -04:00 committed by GitHub
commit f0b2ebaeed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,