1. Hide Channel
You can hide a channel so that it does not appear in currently joined channel list.
[[TalkPlus sharedInstance] hideChannel:channelId success:^{
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.hideChannel(channelId, success: {
// SUCCESS
}, failure: { (errorCode, error) in
// FAILURE
})
2. Show Channel
You can unhide a channel so that it appears in currently joined channel list.
[[TalkPlus sharedInstance] showChannel:channelId success:^{
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.showChannel(channelId, success: {
// SUCCESS
}, failure: { (errorCode, error) in
// FAILURE
})
3. Get Hidden Channel List
[[TalkPlus sharedInstance] getHiddenChannels:lastChannel
success:^(NSArray<TPChannel *> *tpChannels, BOOL hasNext) {
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
TalkPlus.sharedInstance()?.getHiddenChannels(lastChannel,
success: { channels, hasNext
// SUCCESS
}, failure: { (errorCode, error) in
// FAILURE
})
Last updated