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 sharedInstance] freezeChannel:channelId success:^{
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.freezeChannel(channelId, success: {
// SUCCESS
}, failure: { (errorCode, error) in
// FAILURE
})
2. Unfreeze Channel
Unfreeze a channel so that any channel members can send messages.
Only the channel owner can unfreeze the channel.
[[TalkPlus sharedInstance] unfreezeChannel:channelId success:^{
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.unfreezeChannel(channelId, success: {
// SUCCESS
}, failure: { (errorCode, error) in
// FAILURE
})
Last updated