leave_channels_async


Description:

[ Version ( since = "0.15.2" ) ]
public async bool leave_channels_async (ChannelGroupChangeReason reason, string message) throws Error

Called by an approver to claim channels and leave them all right away.

If this method is called successfully, this has been claimed and leave_async has been called on all of its channels.

If successful, this method will cause the invalidated signal to be emitted, in the same way as for handle_with_async.

This method may fail because the dispatch operation has already been completed. Again, see handle_with_async for more details.

TP_CHANNEL_DISPATCH_OPERATION_FEATURE_CORE feature must be prepared before calling this function.

Parameters:

this

a ChannelDispatchOperation

reason

the leave reason

message

the leave message

callback

a callback to call when the request has been satisfied

user_data

data to pass to callback