Freeze / Unfreeze Channel

1. Freeze Channel

Freezing a channel prevents all channel members (with the exception of channel owner) from sending messages.

  • Only the channel owner can freeze the channel.

  • Only the channel owner can send messages in a 'frozen' channel.

TalkPlus.freezeChannel(channelId, 
    new TalkPlus.CallbackListener<Void>() {
        @Override
        public void onSuccess(Void aVoid) {
        }
        @Override
        public void onFailure(int errorCode, Exception exception) {
        }
    }
);

2. Unfreeze Channel

Unfreeze a channel so that any channel members can send messages.

Only the channel owner can unfreeze the channel.

TalkPlus.unfreezeChannel(channelId, 
    new TalkPlus.CallbackListener<Void>() {
        @Override
        public void onSuccess(Void aVoid) {
        }
        @Override
        public void onFailure(int errorCode, Exception exception) {
        }
    }
);

Last updated