-
Notifications
You must be signed in to change notification settings - Fork 363
Check for meetingId conflicts #1233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d649eae
log: Remove meeting_id when resetting log context.
bgrozev 9ab91d1
chore: Update jitsi-xmpp-extensions.
bgrozev a4b1687
fix: Consider blank string from MUC form as unset meeting_id.
bgrozev 9c15953
chore: Fix warnings.
bgrozev 9f219f2
Check for meetingId conflicts.
bgrozev 4c415b3
squash: Do not override meetingId coming from muc, fail instead.
bgrozev d7a14ab
squash: Fix log message.
bgrozev 16e794e
squash: Address feedback.
bgrozev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,6 @@ | |
| import org.jxmpp.jid.*; | ||
|
|
||
| import java.time.*; | ||
| import java.net.*; | ||
| import java.util.*; | ||
| import java.util.concurrent.*; | ||
| import java.util.concurrent.atomic.*; | ||
|
|
@@ -257,7 +256,7 @@ public class JitsiMeetConferenceImpl | |
| * Whether broadcasting to visitors is currently enabled. | ||
| * TODO: support changing it. | ||
| */ | ||
| private boolean visitorsBroadcastEnabled = VisitorsConfig.config.getAutoEnableBroadcast(); | ||
| private final boolean visitorsBroadcastEnabled = VisitorsConfig.config.getAutoEnableBroadcast(); | ||
|
|
||
| @NotNull private final Instant createdInstant = Instant.now(); | ||
|
|
||
|
|
@@ -521,7 +520,7 @@ private void joinTheRoom() | |
| chatRoom.addListener(chatRoomListener); | ||
|
|
||
| ChatRoomInfo chatRoomInfo = chatRoom.join(); | ||
| if (chatRoomInfo.getMeetingId() == null) | ||
| if (org.apache.commons.lang3.StringUtils.isBlank(chatRoomInfo.getMeetingId())) | ||
| { | ||
| meetingId = UUID.randomUUID().toString(); | ||
| logger.warn("No meetingId set for the MUC. Generating one locally."); | ||
|
|
@@ -998,7 +997,7 @@ private void onMemberLeft(ChatRoomMember chatRoomMember) | |
| { | ||
| rescheduleSingleParticipantTimeout(); | ||
| } | ||
| else if (participants.size() == 0) | ||
| else if (participants.isEmpty()) | ||
| { | ||
| expireBridgeSessions(); | ||
| } | ||
|
|
@@ -1098,7 +1097,7 @@ else if (removed.getChatMember().getRole() == MemberRole.VISITOR) | |
| } | ||
|
|
||
| @Override | ||
| public void componentsChanged(Set<XmppProvider.Component> components) | ||
| public void componentsChanged(@NotNull Set<XmppProvider.Component> components) | ||
| { | ||
| } | ||
|
|
||
|
|
@@ -1903,7 +1902,7 @@ private long getUserParticipantCount() | |
|
|
||
| /** | ||
| * Selects a visitor node for a new participant, and joins the associated chat room if not already joined | ||
| * @return | ||
| * @return the ID of the selected node, or null if the endpoint is to be sent to the main room. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Annotate return type with |
||
| * @throws Exception if joining the chat room failed. | ||
| */ | ||
| private String selectVisitorNode() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this not be imported?