replacePinnedMessage abstract method

Future<void> replacePinnedMessage(
  1. String conversationId,
  2. String messageId, {
  3. DateTime? pinnedUntil,
})

Replaces the currently pinned message in a conversation with messageId.

After this call, at most one non-deleted message in the conversation should have isPinned == true.

Implementation

Future<void> replacePinnedMessage(
  String conversationId,
  String messageId, {
  DateTime? pinnedUntil,
});