Skip to content

Commit 9f46d3c

Browse files
authored
hotfix: Synchronize archive channel permissions with category (#1388)
Archives are being seen by ordinary members because the channels have no permissions being set properly. Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>
1 parent 20f0cb2 commit 9f46d3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/features/voicechat/DynamicVoiceChat.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ private void archiveDynamicVoiceChannel(AudioChannelUnion channel) {
150150

151151
archiveCategoryOptional.ifPresent(archiveCategory -> restActionChain
152152
.and(channelManager.setParent(archiveCategory))
153+
.and(channelManager.sync(archiveCategory))
153154
.queue(_ -> voiceChatCleanupStrategy.cleanup(archiveCategory.getVoiceChannels()),
154155
err -> logger.error("Could not archive dynamic voice chat", err)));
155156
}

0 commit comments

Comments
 (0)