Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Remove limit condition. (#11960)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo K <[email protected]>
  • Loading branch information
toger5 authored Nov 29, 2023
1 parent 27b138b commit 0b8fdb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/models/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,10 +771,8 @@ export class ElementCall extends Call {
(m) => m.application === "m.call" && m.callId === "",
);

// We only want to ring in rooms that have less or equal to NOTIFY_MEMBER_LIMIT participants. For really large rooms we don't want to ring.
const NOTIFY_MEMBER_LIMIT = 15;
const memberCount = getJoinedNonFunctionalMembers(room).length;
if (!isVideoRoom && existingRoomCallMembers.length == 0 && memberCount <= NOTIFY_MEMBER_LIMIT) {
if (!isVideoRoom && existingRoomCallMembers.length == 0) {
// send ringing event
const content: ICallNotifyContent = {
"application": "m.call",
Expand Down

0 comments on commit 0b8fdb3

Please sign in to comment.