Send known channels to the server when they send us theirs.

This commit is contained in:
LexManos committed 2023-09-21 16:25:51 -07:00
1 parent 516b35ce57
commit d80f106140
3 files changed
+9 -14

No files matched your search

@@ -41,6 +41,9 @@ public class ChannelListManager {
var ctx = evt.getSource();
updateFrom(ctx, evt.getPayload(), ChannelRegistrationChangeEvent.Type.REGISTER);
ctx.setPacketHandled(true);
// Send the client's channels to the server whenever asked. If we're in the login state then our login wrapper will unwrap for us.
if (ctx.isClientSide())
addChannels(ctx.getConnection());
}
private static void unregisterListener(CustomPayloadEvent evt) {