Don't place another call if there's already one ongoing
The 'call' button doesn't turn into a hangup button as soon as there's a call in the room, but we should have been doing this anyway.
This commit is contained in:
parent
77cf4cf7a4
commit
d8483ddf0d
2 changed files with 10 additions and 0 deletions
|
@ -706,6 +706,14 @@ export default class CallHandler {
|
|||
return;
|
||||
}
|
||||
|
||||
if (this.getCallForRoom(room.roomId)) {
|
||||
Modal.createTrackedDialog('Call Handler', 'Existing Call with user', ErrorDialog, {
|
||||
title: _t('Already in call'),
|
||||
description: _t("You're already in a call with this person."),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const members = room.getJoinedMembers();
|
||||
if (members.length <= 1) {
|
||||
Modal.createTrackedDialog('Call Handler', 'Cannot place call with self', ErrorDialog, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue