unpinMessage method
- int messageId
Removes the message from the channel's pinned messages.
messageId
is id of a message to unpin.
Implementation
Future<void> unpinMessage(int messageId) async {
if (messageId <= 0) throw InvalidParameterException();
sbLog.i(StackTrace.current, 'messageId: $messageId');
await chat.apiClient.send(
PinDeleteRequest(
chat,
channelType: ChannelType.group,
channelUrl: channelUrl,
messageId: messageId,
),
);
}