markRead method

  1. @override
Future<void> markRead(
  1. String conversationId,
  2. DateTime readAt
)
override

Marks the conversation as read for the current user at readAt.

Implementation

@override
Future<void> markRead(String conversationId, DateTime readAt) async {
  if (!_connected) return;
  _send({
    'type': 'read',
    'payload': {
      'conversationId': conversationId,
      'readAt': readAt.toIso8601String(),
    },
  });
}